Get Eval Prompts
Retrieve prompts for a specific eval if they exist.
Args: eval_uuid (str): UUID of the eval to get prompts for. workspace_uuid (str, optional): Optional workspace UUID for filtering.
Returns: list[EvalPrompt]: List of prompts and metadata for the eval.
Raises: AymaraAPIError: If the eval is not found.
Example: GET /api/evals/{eval_uuid}/prompts
Path parameters
-
eval_uuid
string Required
Query parameters
-
workspace_uuid
string -
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/evals/{eval_uuid}/prompts
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.evals.list_prompts(
eval_uuid="eval_uuid",
)
page = page.items[0]
print(page.prompt_uuid)
curl \
--request GET 'https://api.aymara.ai/v2/evals/{eval_uuid}/prompts' \
--header "x-api-key: $API_KEY"
Response examples (200)
{
"items": [
{
"prompt_uuid": "string",
"thread_uuid": "string",
"turn_number": 1,
"content": "string",
"category": "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": ""
}