Get Eval Type Instructions By Slug
Retrieve instructions for a specific eval type by its slug.
Args: eval_type_slug (str): Slug identifier for the eval type.
Returns: list[AiInstruction]: List of AI instructions for the eval type.
Raises: AymaraAPIError: If the eval type is not found.
Example: GET /api/eval-types/-/instructions?eval_type_slug=...
Query parameters
-
eval_type_slug
string Required -
limit
integer Minimum value is
1
. Default value is100
. -
offset
integer Minimum value is
0
. Default value is0
.
Responses
-
200 application/json
OK
-
400 application/json
Bad Request
-
401 application/json
Unauthorized
-
403 application/json
Forbidden
-
404 application/json
Not Found
-
409 application/json
Conflict
-
422 application/json
Unprocessable Entity
-
429 application/json
Too Many Requests
-
500 application/json
Internal Server Error
-
503 application/json
Service Unavailable
GET
/v2/eval-types/-/instructions
Python
import os
from aymara_ai import AymaraAI
client = AymaraAI(
api_key=os.environ.get("AYMARA_AI_API_KEY"), # This is the default and can be omitted
)
page = client.eval_types.find_instructions(
eval_type_slug="eval_type_slug",
)
page = page.items[0]
print(page.instruction_uuid)
curl \
--request GET 'https://api.aymara.ai/v2/eval-types/-/instructions?eval_type_slug=string' \
--header "x-api-key: $API_KEY"
Response examples (200)
{
"items": [
{
"instruction_uuid": "string",
"name": "string",
"content": "string",
"eval_type": "string",
"language": "string"
}
],
"count": 42
}
Response examples (400)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (401)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (403)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (404)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (409)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (422)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (429)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (500)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}
Response examples (503)
{
"error": {
"code": "auth.invalid_key",
"message": "string",
"details": {}
},
"request_id": ""
}