MCPcopy
hub / github.com/deepnote/deepnote / AgentBlockContext

Interface AgentBlockContext

packages/runtime-core/src/agent-handler.ts:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 | { type: 'reasoning_delta'; text: string }
14
15export 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
27export interface AgentBlockResult {
28 finalOutput: string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected