curl --request GET \
--url https://api.avidoai.com/v0/tasks/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-01T00:00:00.000Z",
"modifiedAt": "2024-01-01T00:00:00.000Z",
"title": "Credit Card Block",
"description": "Wants to block their credit card",
"baseline": 0.5,
"application": {
"id": "app_123",
"title": "Support Bot",
"slug": "support-bot",
"description": "",
"context": "",
"type": "CHATBOT",
"environment": "DEV",
"createdAt": "2024-01-01T00:00:00.000Z",
"modifiedAt": "2024-01-01T00:00:00.000Z"
},
"topic": {
"id": "topic_abc",
"title": "Banking Issues",
"baseline": null,
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z"
},
"metadata": {
"customerId": "1",
"priority": "high"
}
}
}Retrieves detailed information about a specific task.
curl --request GET \
--url https://api.avidoai.com/v0/tasks/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-01T00:00:00.000Z",
"modifiedAt": "2024-01-01T00:00:00.000Z",
"title": "Credit Card Block",
"description": "Wants to block their credit card",
"baseline": 0.5,
"application": {
"id": "app_123",
"title": "Support Bot",
"slug": "support-bot",
"description": "",
"context": "",
"type": "CHATBOT",
"environment": "DEV",
"createdAt": "2024-01-01T00:00:00.000Z",
"modifiedAt": "2024-01-01T00:00:00.000Z"
},
"topic": {
"id": "topic_abc",
"title": "Banking Issues",
"baseline": null,
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z"
},
"metadata": {
"customerId": "1",
"priority": "high"
}
}
}Your unique Avido API key
Your unique Avido Application ID
The unique identifier of the task
"123e4567-e89b-12d3-a456-426614174000"
Successfully retrieved task
Successful response containing the task data
A task that represents a specific job-to-be-done by the LLM in the user application.
Show child attributes
The unique identifier of the task
"123e4567-e89b-12d3-a456-426614174000"
When the task was created
"2024-01-05T12:34:56.789Z"
When the task was last modified
"2024-01-05T12:34:56.789Z"
The title of the task
"Credit Card Block"
The task description
"Wants to block their credit card"
The type of task. Normal tasks have a dynamic user prompt, while adversarial tasks have a fixed user prompt.
STATIC, NORMAL "NORMAL"
The 30 day pass rate for the task measured in percentage
66
Example inputs for the task
["I want to block my credit card"]Show child attributes
Show child attributes
When the eval definition was created
"2024-01-05T12:34:56.789Z"
When the eval definition was last modified
"2024-01-05T12:34:56.789Z"
The type of evaluation
NATURALNESS, STYLE, RECALL, CUSTOM, FACT, OUTPUT_MATCH "NATURALNESS"
Show child attributes
The criterion describes what our evaluation LLM must look for in the response. Remember that the answer to the criterion must be as a pass/fail.
1Application configuration and metadata
Show child attributes
Unique identifier of the application
"123e4567-e89b-12d3-a456-426614174000"
Organization ID that owns this application
"org_123456"
Title of the application
1"Customer Support Bot"
URL-friendly slug for the application
1"customer-support-bot"
Description of the application
"AI assistant for customer support inquiries"
Context/instructions for the application
"You are a helpful customer support assistant..."
Language of the application
"en"
Type of the application. Valid values are CHATBOT or AGENT.
CHATBOT, AGENT "CHATBOT"
Environment of the application. Defaults to DEV.
DEV, PROD "DEV"
When the application was created
"2024-01-05T12:34:56.789Z"
When the application was last modified
"2024-01-05T12:34:56.789Z"
The date and time this task was last tested
"2024-01-01T00:00:00.000Z"
JSON schema that defines the structure for user prompts that should be generated for tests
Show child attributes
{
"type": "object",
"properties": {
"intent": { "type": "string" },
"urgency": {
"type": "string",
"enum": ["low", "medium", "high"]
}
},
"required": ["intent"]
}Task schedule schema
The ID of the topic this task belongs to
"789e4567-e89b-12d3-a456-426614174000"