LlmDecisionServiceFactory

@ApiStatus.Experimental
class LlmDecisionServiceFactory @ApiStatus.Internal constructor(llmOperations: LlmOperations, modelProvider: ModelProvider, retry: RetryProperties, observationRegistry: <Error class: unknown class> = ObservationRegistry.NOOP)

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.

Applications inject the LlmDecisionServiceFactory bean from the Spring context.

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(llmOperations: LlmOperations, modelProvider: ModelProvider, retry: RetryProperties, observationRegistry: <Error class: unknown class> = ObservationRegistry.NOOP)

Functions

Link copied to clipboard

Builds a classification service for a model the caller already holds.

Builds a classification service for the model with this name.

Link copied to clipboard

Builds a decision service for a model the caller already holds.

Builds a decision service for the model with this name.