Object LlmReference.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • of

        @JvmOverloads() final static LlmReference of(String name, String description, List<Tool> tools, String notes)

        Create an LlmReference with tools.

        Parameters:
        name - The reference name (used as tool prefix)
        description - A description of what this reference provides
        tools - The tools provided by this reference
        notes - The text content to include in the prompt
        Returns:

        An LlmReference with the given content and tools

      • of

        @JvmOverloads() final static LlmReference of(String name, String description, List<Tool> tools)

        Create an LlmReference with tools.

        Parameters:
        name - The reference name (used as tool prefix)
        description - A description of what this reference provides
        tools - The tools provided by this reference
        Returns:

        An LlmReference with the given content and tools

      • of

        @JvmOverloads() final static LlmReference of(String name, String description, Object tool, String notes)

        Create an LlmReference with a single tool object.

        Parameters:
        name - The reference name (used as tool prefix)
        description - A description of what this reference provides
        tool - The single tool provided by this reference.
        notes - The text content to include in the prompt
        Returns:

        An LlmReference with the given content and tools

      • of

        @JvmOverloads() final static LlmReference of(String name, String description, Object tool)

        Create an LlmReference with a single tool object.

        Parameters:
        name - The reference name (used as tool prefix)
        description - A description of what this reference provides
        tool - The single tool provided by this reference.
        Returns:

        An LlmReference with the given content and tools

      • fromToolInstances

         final static LlmReference fromToolInstances(String name, String description, String notes, Object toolInstances)

        Create an LlmReference from tool instances. Accepts both Tool objects directly and objects with @LlmTool annotated methods.

        Parameters:
        name - The reference name (used as tool prefix)
        description - A description of what this reference provides
        notes - The text content to include in the prompt
        toolInstances - Tool objects or objects containing @LlmTool annotated methods
        Returns:

        An LlmReference with the given tools