Interface ToolExecutionResult

Result of executing a single tool call.

interface ToolExecutionResult {
    content: string;
    error?: string;
    resultUrls: string[];
    success: boolean;
    toolCallId: string;
    toolName: string;
}

Properties

content: string

JSON string ready to use as the content of a tool role message.

error?: string

Error message if execution failed.

resultUrls: string[]

Generated media URLs (empty for non-Sogni tools or on failure).

success: boolean

Whether execution succeeded.

toolCallId: string

The tool_call ID from the model response.

toolName: string

Name of the tool that was executed.