MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / AgentOptions

Interface AgentOptions

packages/web/src/ee/features/chat/agent.ts:221–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219};
220
221interface AgentOptions {
222 model: LanguageModel;
223 providerOptions?: ProviderOptions;
224 temperature?: number;
225 selectedRepos: string[];
226 disabledMcpServerIds?: string[];
227 inputMessages: ModelMessage[];
228 inputSources: Source[];
229 onWriteSource: (source: Source) => void;
230 onMcpServerDiscovered: (sanitizedName: string, faviconUrl: string) => void;
231 onMcpServerFailed: (serverName: string) => void;
232 traceId: string;
233 chatId: string;
234 prisma: PrismaClient;
235 userId?: string;
236 orgId?: number;
237}
238
239const createAgentStream = async ({
240 model,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected