Class DefaultModelPromptProvider

  • All Implemented Interfaces:
    ai.ancf.lmos.router.llm.ModelPromptProvider

    
    public final class DefaultModelPromptProvider
     implements ModelPromptProvider
                        

    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Result<String, AgentRoutingSpecResolverException> providePrompt(Context context, Set<AgentRoutingSpec> agentRoutingSpecs, UserMessage input)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultModelPromptProvider

        DefaultModelPromptProvider()
    • Method Detail

      • providePrompt

         Result<String, AgentRoutingSpecResolverException> providePrompt(Context context, Set<AgentRoutingSpec> agentRoutingSpecs, UserMessage input)