| 219 | }; |
| 220 | |
| 221 | interface 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 | |
| 239 | const createAgentStream = async ({ |
| 240 | model, |
nothing calls this directly
no outgoing calls
no test coverage detected