MCPcopy
hub / github.com/CesiumGS/cesium / AIClient

Interface AIClient

packages/sandcastle/src/copilot/ai/clients/AIClientFactory.ts:71–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71export interface AIClient {
72 generateWithContext(
73 userMessage: string,
74 context: CodeContext,
75 customAddendum?: string,
76 tools?: ToolDefinition[],
77 conversationHistory?: ConversationHistory,
78 attachments?: Array<{ mimeType: string; base64Data: string }>,
79 abortSignal?: AbortSignal,
80 ): AsyncGenerator<StreamChunk>;
81
82 submitToolResult(
83 toolCall: ToolCall,
84 result: ToolResult,
85 systemPrompt: string,
86 conversationHistory: ConversationHistory,
87 tools?: ToolDefinition[],
88 abortSignal?: AbortSignal,
89 ): AsyncGenerator<StreamChunk>;
90}
91
92export class AIClientFactory {
93 /** Returns null when the model has no region restrictions. */

Callers 2

ChatPanelFunction · 0.65
useToolChainExecutionFunction · 0.65

Implementers 3

VertexAIClientpackages/sandcastle/src/copilot/ai/cli
AnthropicClientpackages/sandcastle/src/copilot/ai/cli
GeminiClientpackages/sandcastle/src/copilot/ai/cli

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…