- list - Get all human review sets
- create - Create a human review set
- get - Get a human review set by ID
- update - Update a human review set
- delete - Delete a human review set
Get all human review sets
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.human_review_sets.list()
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
project_id |
Optional[str] |
➖ |
Optional project ID to filter human review sets by project |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
List[models.GetV2HumanEvalSetsResponseBody]
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Create a human review set
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.human_review_sets.create()
# Handle response
print(res)
models.PostV2HumanEvalSetsResponseBody
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Get a human review set by ID
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.human_review_sets.get(id="<id>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
id |
str |
✔️ |
The ID of the human review set to retrieve |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.GetV2HumanEvalSetsIDResponseBody
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Update a human review set
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.human_review_sets.update(id="<id>")
# Handle response
print(res)
models.PatchV2HumanEvalSetsIDResponseBody
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Delete a human review set
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
orq.human_review_sets.delete(id="<id>")
# Use the SDK ...
| Parameter |
Type |
Required |
Description |
id |
str |
✔️ |
The ID of the human review set to retrieve |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |