MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / takeAgent

Function takeAgent

graph-ui/src/browser-ai/agent-handover.ts:78–85  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

76
77/** The mounting dock takes the handed-over model. A model of another choice is unloaded. */
78export function takeAgent(modelId: string): AgentHandover | undefined {
79 const handover = handed;
80 if (!handover) return undefined;
81 handed = undefined;
82 if (handover.modelId === modelId) return handover;
83 handover.runtime.dispose();
84 return undefined;
85}

Callers 2

BrowserChatDockFunction · 0.90

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected