Llm Decision Service Factory
Builds decision and classification services that ask a chat model.
Each service records one embabel.ai.decision or embabel.ai.classification observation per call. A model named here is looked up once, when the service is built. To use a model the caller already holds, such as one built for a user's own API key, pass the LlmService instead.
As a DecisionModelProvider, it serves every chat model the ModelProvider lists, so a decision default or role can name a chat model directly and the registry builds the prompted service on first use.
Applications inject the LlmDecisionServiceFactory bean from the Spring context.
Constructors
Properties
Functions
Builds a classification service for a model the caller already holds.
Builds a classification service for the model with this name.
Builds a decision service for a model the caller already holds.
Builds a decision service for the model with this name.
Builds a prompted decision service for a chat model.
Returns the names of the chat models the model provider lists.