Fency.ai
Agent tasks

Agent tasks

Asynchronous work such as memory chat, search, and chat completions.

Agent tasks represent asynchronous work such as memory chat, memory search, or chat completions. Create a task by creating a session, then list or retrieve the task here. Poll or subscribe to webhooks to track status and results. Files a task produces are documented under Agent task files.

The agent task object

AttributeTypeDescription
idstringThe unique identifier of the agent task.
createdAtstringWhen the agent task was created.
updatedAtstringWhen the agent task was last updated.
statusstringIN_PROGRESS, SUCCEEDED, or FAILED.
taskTypestringKind of task (MEMORY_CHAT, MEMORY_SEARCH, STREAMING_CHAT_COMPLETION, STRUCTURED_CHAT_COMPLETION).
succeededAtstringWhen the task completed successfully, if applicable.
successResponseobjectTask-specific success payload when status is SUCCEEDED.
failedAtstringWhen the task failed, if applicable.
failureResponseobjectError details when status is FAILED.
metadataobjectCustom key-value metadata for the agent task.
conversationIdstringConversation this task belongs to, if any.
manualActionResultsarrayResults recorded for any manual actions the task requested.

On this page