| 13 | | { type: 'reasoning_delta'; text: string } |
| 14 | |
| 15 | export interface AgentBlockContext { |
| 16 | openAiToken: string |
| 17 | mcpServers: McpServerConfig[] |
| 18 | notebookContext: string |
| 19 | addAndExecuteCodeBlock: (args: { code: string }) => Promise<string> |
| 20 | addMarkdownBlock: (args: { content: string }) => Promise<string> |
| 21 | onAgentEvent?: (event: AgentStreamEvent) => void | Promise<void> |
| 22 | /** Optional sink for non-fatal warnings (e.g. MCP client cleanup failures). The host decides how to surface them. */ |
| 23 | onWarning?: (message: string) => void |
| 24 | integrations?: Array<{ id: string; name: string; type: string }> |
| 25 | } |
| 26 | |
| 27 | export interface AgentBlockResult { |
| 28 | finalOutput: string |
nothing calls this directly
no outgoing calls
no test coverage detected