Skip to main content

generateAgentOutput

Agent Runtimes


Agent Runtimes / api/output / generateAgentOutput

Function: generateAgentOutput()

generateAgentOutput(token, agentId, format?, options?, baseUrl?): Promise<OutputArtifact>

Defined in: api/output.ts:74

Generate a new output artifact for an agent.

Parameters

token

string

Authentication token

agentId

string

Agent ID

format?

string = 'pdf'

Output format (e.g. 'pdf')

options?

Record<string, unknown>

Additional generation options

baseUrl?

string = DEFAULT_SERVICE_URLS.AI_AGENTS

Base URL

Returns

Promise<OutputArtifact>

Promise resolving to the generated artifact