Package com.embabel.agent.api.reference
Object LlmReference.Companion
-
- All Implemented Interfaces:
public class LlmReference.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static LlmReference.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static LlmReferenceof(String name, String description, List<Tool> tools, String notes)Create an LlmReference with tools. final static LlmReferenceof(String name, String description, List<Tool> tools)Create an LlmReference with tools. final static LlmReferenceof(String name, String description, Object tool, String notes)Create an LlmReference with a single tool object. final static LlmReferenceof(String name, String description, Object tool)Create an LlmReference with a single tool object. final static LlmReferencefromToolInstances(String name, String description, String notes, Object toolInstances)Create an LlmReference from tool instances. -
-
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 providestools- The tools provided by this referencenotes- 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 providestools- 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 providestool- 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 providestool- 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 providesnotes- The text content to include in the prompttoolInstances- Tool objects or objects containing @LlmTool annotated methods- Returns:
An LlmReference with the given tools
-
-
-
-