chatbot/llm-service
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
chatbot/llm-service
Section titled “chatbot/llm-service”- Package:
@leipzigtreechat/chatbot - Source file:
packages/chatbot/src/llm-service.ts
Summary
Section titled “Summary”OpenRouter client type used by the chatbot’s LLM service layer.
Classes
Section titled “Classes”LLMServiceError
Section titled “LLMServiceError”class LLMServiceError extends Data.TaggedError("LLMServiceError")<{ readonly operation: string; readonly reason: unknown;}>Wraps failures from outbound LLM operations with the originating operation name.
Extends: Data.TaggedError("LLMServiceError")<{ readonly operation: string; readonly reason: unknown; }>
Methods
constructor(operation: string, reason: unknown)Defined at: line 18
OpenRouter
Section titled “OpenRouter”class OpenRouter extends Context.Tag("OpenRouter")< OpenRouter, { readonly client: () => Effect.Effect<OpenRouterClient, never, never>; }>()Effect service that provides access to the configured OpenRouter client.
Extends: `Context.Tag(“OpenRouter”)< OpenRouter, { readonly client: () => Effect.Effect<OpenRouterClient, never, never>; }
()` Properties
Live(unknown) Defined at: line 30
LLMService
Section titled “LLMService”class LLMService extends Context.Tag("LLMService")<LLMService, LLMServiceInterface>()Effect service that wraps all LLM-backed chatbot text generation.
Extends: Context.Tag("LLMService")<LLMService, LLMServiceInterface>()
Properties
Live(unknown) Defined at: line 96
OpenRouterClient
Section titled “OpenRouterClient”type OpenRouterClient = ReturnType<typeof createOpenRouter>OpenRouter client type used by the chatbot’s LLM service layer.
Defined at: line 13
In chatbot
Section titled “In chatbot”chatbot/__benchmarks__/fixtureschatbot/__benchmarks__/indexchatbot/__benchmarks__/reportchatbot/__benchmarks__/runnerchatbot/__benchmarks__/scoringchatbot/__benchmarks__/typeschatbot/constantschatbot/errorschatbot/graphchatbot/indexchatbot/langgraph-runtimechatbot/llm-servicechatbot/metadatachatbot/nodeschatbot/state/clarification_conversationchatbot/state/indexchatbot/state/qanary-typeschatbot/triplestore-servicechatbot/unit