MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / toolContext

Method toolContext

src/core/agent.ts:338–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 }
337
338 private toolContext(): ToolContext {
339 return {
340 cwd: this.options.cwd,
341 token: this.options.token,
342 getTodos: () => this.todos,
343 setTodos: (todos: string) => {
344 this.todos = todos
345 this.options.callbacks.onEvent({ type: "todos", todos })
346 },
347 }
348 }
349
350 async runTurn(userText: string): Promise<void> {
351 const { onEvent } = this.options.callbacks

Callers 1

handleToolCallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected