LLMAgentRoutingSpecsResolverAutoConfiguration

Autoconfiguration for the LLM agent resolver.

The springAgentResolverCompletionProvider bean provides a ModelClient that uses the ChatModel to resolve agent routing specifications. The agentRoutingSpecsProvider bean provides an AgentRoutingSpecsProvider that reads agent routing specifications from a JSON file. The agentResolverPromptProvider bean provides a ModelPromptProvider that uses the default model prompt provider. The llmAgentRoutingSpecsResolver bean provides an LLMAgentRoutingSpecsResolver that uses the AgentRoutingSpecsProvider, ModelPromptProvider, and ModelClient to resolve agent routing specifications.

Parameters

properties

The properties for the LLM agent resolver.

Constructors

Functions

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [ModelPromptProvider::class])
open fun agentResolverPromptProvider(): ModelPromptProvider

Provides a ModelPromptProvider that uses the default model prompt provider.

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [AgentRoutingSpecsProvider::class])
open fun agentRoutingSpecsProvider(): AgentRoutingSpecsProvider

Provides an AgentRoutingSpecsProvider that reads agent routing specifications from a JSON file.

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [LLMAgentRoutingSpecsResolver::class])
open fun llmAgentRoutingSpecsResolver(agentRoutingSpecsProvider: AgentRoutingSpecsProvider, modelPromptProvider: ModelPromptProvider, modelClient: ModelClient): LLMAgentRoutingSpecsResolver

Provides an LLMAgentRoutingSpecsResolver that uses the AgentRoutingSpecsProvider, ModelPromptProvider, and ModelClient to resolve agent routing specifications.

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [ModelClient::class])
open fun springAgentResolverCompletionProvider(chatModel: ChatModel): ModelClient

Provides a ModelClient that uses the ChatModel to resolve agent routing specifications.