AiTaskFilterInput
Type: Input
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| agent | AiAgentFilterInput | ||
| agentId | AiTaskFilterAgentId | ||
| and | [AiTaskFilterInput!] | ||
| completedAt | AiTaskFilterCompletedAt | When the task completed (successfully or with failure) | |
| context | AiTaskFilterContext | Additional context for the task | |
| createdAt | AiTaskFilterCreatedAt | When the task was created | |
| dependencies | AiTaskFilterInput | ||
| description | AiTaskFilterDescription | Interpolated description with actual values from the execution input | |
| errorMessage | AiTaskFilterErrorMessage | Error message if the task failed | |
| execution | AiExecutionFilterInput | ||
| executionId | AiTaskFilterExecutionId | ||
| expectedOutput | AiTaskFilterExpectedOutput | Description of what output is expected from this task | |
| id | AiTaskFilterId | ||
| metadata | AiTaskFilterMetadata | Additional metadata for the task | |
| not | [AiTaskFilterInput!] | ||
| or | [AiTaskFilterInput!] | ||
| outputJsonSchema | AiTaskFilterOutputJsonSchema | JSON Schema for structured output. When provided, the LLM will use JSON mode with this schema to ensure valid JSON output | |
| priority | AiTaskFilterPriority | Task priority (higher numbers = higher priority) | |
| result | AiTaskFilterResult | The output produced by the agent | |
| startedAt | AiTaskFilterStartedAt | When the task started execution | |
| state | AiTaskFilterState | The current state of the task: pending, assigned, in_progress, completed, failed, or cancelled | |
| taskTemplate | AiTaskTemplateFilterInput | The template this task was created from | |
| taskTemplateId | AiTaskFilterTaskTemplateId | ||
| updatedAt | AiTaskFilterUpdatedAt | When the task was last updated |