Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
The DefaultModelClient class is a default implementation of the ModelClient interface.
Link copied to clipboard
data class DefaultModelClientProperties(val openAiUrl: String = "https://api.openai.com/v1/chat/completions", val openAiApiKey: String, val model: String = "gpt-3.5-turbo", val maxTokens: Int = 200, val temperature: Double = 0.0, val format: String = "json_object")
The DefaultModelClientProperties data class represents the properties for the default model client.
Link copied to clipboard
Default implementation of ModelPromptProvider that provides a generic prompt for agent resolution. The prompt includes instructions for selecting the most suitable agent based on the agents' capabilities. This prompt is intended to be used as a fallback when a custom prompt is not provided. This prompt requires json mode to be enabled.
Link copied to clipboard
class ExternalModelPromptProvider(promptFilePath: String, agentRoutingSpecsListType: AgentRoutingSpecListType = AgentRoutingSpecListType.XML) : ModelPromptProvider
Link copied to clipboard
class LLMAgentRoutingSpecsResolver(val agentRoutingSpecsProvider: AgentRoutingSpecsProvider, modelPromptProvider: ModelPromptProvider = DefaultModelPromptProvider(), modelClient: ModelClient = DefaultModelClient(
DefaultModelClientProperties(
openAiApiKey =
System.getenv(
"OPENAI_API_KEY",
),
),
), serializer: Json = Json {
ignoreUnknownKeys = true
isLenient = true
}) : AgentRoutingSpecsResolver
An agent spec resolver that uses a language model to resolve agent specs.
Link copied to clipboard
interface ModelClient
The ModelClient interface represents a client that can call a model.
Link copied to clipboard
Represents a model client response.
Link copied to clipboard
interface ModelPromptProvider
Represents a model prompt provider.