VectorAgentRoutingSpecsResolver

open class VectorAgentRoutingSpecsResolver(val agentRoutingSpecsProvider: AgentRoutingSpecsProvider, vectorSearchClient: VectorSearchClient = DefaultVectorClient( DefaultVectorClientProperties( seedJsonFilePath = System.getenv("VECTOR_SEED_JSON_FILE_PATH"), ), )) : AgentRoutingSpecsResolver

An implementation of AgentSpecResolver that resolves agent specs using a vector similarity search.

Parameters

agentRoutingSpecsProvider

The agent specs provider.

vectorSearchClient

The vector search client.

Constructors

Link copied to clipboard
constructor(agentRoutingSpecsProvider: AgentRoutingSpecsProvider, vectorSearchClient: VectorSearchClient = DefaultVectorClient( DefaultVectorClientProperties( seedJsonFilePath = System.getenv("VECTOR_SEED_JSON_FILE_PATH"), ), ))

Properties

Link copied to clipboard
open override val agentRoutingSpecsProvider: AgentRoutingSpecsProvider

Functions

Link copied to clipboard
open override fun resolve(context: Context, input: UserMessage): Result<AgentRoutingSpec?, AgentRoutingSpecResolverException>
open override fun resolve(filters: Set<SpecFilter>, context: Context, input: UserMessage): Result<AgentRoutingSpec?, AgentRoutingSpecResolverException>