AgentBackendEventAssistantMessage
An event sent from the agent backend to the client during an agent task execution.
Properties
contentstring requiredMessage content from the assistant.- Optional tool calls within the message.
- ↳
idstring requiredTool call identifier. - ↳
namestring requiredTool name. - ↳
argsmap[string]object requiredTool arguments. - ↳
execution_modeenum optionalWhere this specific tool call must be executed. Omitted means the task default applies (‘cloud’ unless the task was created with ‘cli’). When set to ‘cli’ or ‘worker’, the agent’s turn ends with the containing assistant message (is_final=true) and an external executor must run this tool call and reply with a ToolResult user event to resume the turn: ‘cli’ is a real localpulumi neoclient, ‘worker’ is a managed worker the service launches. Different tool calls within the same assistant message may independently target ‘cloud’, ‘cli’, or ‘worker’.Values:cloud,cli,worker is_finalboolean requiredWhether this is the final message in the response.- Token usage metadata grouped by model name.
thinking_signaturesarray[string] optionalOpaque thinking-block signatures from the model’s response, in order. Must be echoed back unchanged on subsequent API calls to preserve reasoning across tool-use turns when extended thinking is enabled. Empty/null for models or turns without extended thinking. With display:“omitted” (Opus 4.7 default) the thinking text itself is empty; only the signature carries load.timestampstring requiredWhen the event occurred.typestring required