Interface LlmUse

  • All Implemented Interfaces:
    com.embabel.agent.core.ToolGroupConsumer , com.embabel.common.ai.prompt.PromptContributorConsumer

    
    public interface LlmUse
     implements PromptContributorConsumer, ToolGroupConsumer
                        

    Spec for calling an LLM. Optional LlmOptions, plus tool groups and prompt contributors.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract LlmOptions getLlm()
      abstract Boolean getGenerateExamples() Whether to generate examples for the prompt.
      abstract Predicate<String> getPropertyFilter() Filter that determines which properties to include when creating objects.
      abstract Boolean getValidation() Whether to validate generated objects.
      • Methods inherited from class com.embabel.common.ai.prompt.PromptContributorConsumer

        getPromptContributors
      • Methods inherited from class com.embabel.agent.core.ToolGroupConsumer

        getToolGroups
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getLlm

         abstract LlmOptions getLlm()
      • getGenerateExamples

         abstract Boolean getGenerateExamples()

        Whether to generate examples for the prompt. Defaults to unknown: Set to false if generating your own examples.

      • getValidation

         abstract Boolean getValidation()

        Whether to validate generated objects. Defaults to true; set to false to skip validation.