Generic type parameter for payload value, allowing flexibility in the type of data returned by the agent
OptionalactionableOptional actionable commands shown as clickable buttons/links. Typically used after completing work to provide easy navigation to created/modified resources. Populated from the agent's final step.
The agent run entity with full execution history.
OptionalautomaticOptional automatic commands executed immediately when received. Used for refreshing data, showing notifications, and updating UI state. Populated from the agent's final step.
OptionalfeedbackWhen a Chat step fires, BaseAgent creates a persistent AIAgentRequest row and returns the new record's ID here. Callers use this to:
Null/undefined when the agent did not terminate on a Chat step.
OptionalfileFile outputs (PDF, Excel, Word, etc.) produced by file-generation actions during this run. Collected by BaseAgent during action execution and processed by AgentRunner into MJ: Artifacts (ContentMode='File') after the run completes.
Unlike mediaOutputs (which are injected into the LLM conversation as multimodal content), file outputs are archived as versioned artifacts and never sent to the LLM. Sub-agents bubble their fileOutputs up to the parent for unified artifact creation.
OptionalmediaMulti-modal outputs generated by the agent.
Contains media that the agent explicitly promoted to its outputs.
All media items are persisted by default (flows through AgentRunner to
AIAgentRunMedia + ConversationDetailAttachment, then auto-paired to
MJ: Artifact Versions via the server-side hook).
Media items with refId are used for placeholder resolution (${media:xxx})
in structured payload / actionable commands.
Sub-agents return their mediaOutputs to parents for bubbling up.
OptionalmemoryOptional memory context that was injected into the agent execution. Includes the notes and examples that were retrieved and used for context.
OptionalpayloadOptional payload returned by the agent
OptionalpayloadThe artifact type ID for the returned payload. This identifies what type of artifact the payload represents (e.g., JSON, Markdown, HTML). Used by UI to determine how to render the payload and which extract rules to apply. If not specified, falls back to the agent's default artifact type configuration.
OptionalresolvedThe resolved FileStorageAccount ID for file artifact storage, determined during agent execution via the hierarchical resolution chain: Runtime → Agent → Category tree → Type → system fallback.
Used by AgentRunner to route file artifact uploads to the correct storage account. Null when no storage account could be resolved (e.g., no accounts configured).
OptionalresponseOptional response form to collect structured user input. When present, the UI will render appropriate input controls based on question types. Populated from the agent's final step.
Whether the agent execution was successful
Result returned from executing an AI Agent with comprehensive execution history.
This result structure provides complete visibility into the agent's execution flow, including all prompts executed, actions taken, sub-agents invoked, and decisions made. The agentRun property contains the full execution history with all steps.