API reference for the enhance task endpoint
/enhance_task
endpoint enriches tasks with relevant knowledge and context to improve agent responses.
This endpoint should be used whenever a user is prompting an agent.
If your agent spawns sub sub agents, each sub task should also call this endpoint.
Code | Description |
---|---|
value_error.missing | Required field is missing |
value_error.json | Invalid JSON in request body |
type_error | Incorrect type for a field |
value_error | Invalid value for a field |
Agent input data including the query text and context
Successful Response
Response enhanced with relevant past knowledge.