Invoke an AI agent and wait for task completion. Returns the final result.
text | json | markdownDefault: texttext: Plain text responsejson: Structured JSON output (use with output_schema for validation)markdown: Formatted markdown responseoutput_format: "json", the agent will return data conforming to this schema.Example:"This is for executive leadership. Use professional tone and focus on business impact.""A 500-word summary with 3 key recommendations and supporting data.""Q4 Sales Analysis""550e8400-e29b-41d4-a716-446655440000""7c9e6679-7425-40de-944b-e07fc1f90ae7""mobile-app" | "web-dashboard" | "api-integration"id from the first request to maintain conversation history"a37db9a1-e483-4544-9136-b32120ae8c81"id for all requests in a conversation thread. Each unique id represents a separate conversation session. The response will include the same id (whether you provided it or it was auto-generated).AgentExecution object with the final result:
completed, failed, errordeployment_type: serverless or be a running containerid parameter across requests to maintain conversation context. The agent will remember all previous messages in the thread.API Key for authentication
text, markdown, json default, harder Successful Response
Task creation response model.
Extends AgentExecution with additional agent_id field.
pending, executing, paused, error, failed, completed, stopped text, markdown, json default, harder