DefaultModelPromptProvider

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.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun providePrompt(context: Context, agentRoutingSpecs: Set<AgentRoutingSpec>, input: UserMessage): Result<String, AgentRoutingSpecResolverException>