Package com.embabel.agent.api.reference
Class LocalDirectoryReference
-
- All Implemented Interfaces:
-
com.embabel.agent.api.reference.LlmReference,com.embabel.agent.api.reference.LlmReferenceProvider,com.embabel.common.ai.prompt.PromptContributor,com.embabel.common.ai.prompt.PromptElement,com.embabel.common.core.types.Described,com.embabel.common.core.types.Named,com.embabel.common.core.types.NamedAndDescribed
public final class LocalDirectoryReference implements LlmReferenceProvider, LlmReference
Reference for a local directory on the filesystem. Provides readonly access via file read tools.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringrootprivate final Stringdescriptionprivate final Stringnotesprivate final Stringnameprivate final StringTransformernamingStrategyprivate final PromptContributionLocationpromptContributionLocationprivate final Stringrole
-
Constructor Summary
Constructors Constructor Description LocalDirectoryReference(String root, String description, String notes, String name)
-
Method Summary
Modifier and Type Method Description final StringgetRoot()StringgetDescription()final StringgetNotes()StringgetName()LlmReferencereference()Create an LLM reference Stringnotes()Notes about this reference, such as usage guidance. -
Methods inherited from class com.embabel.agent.api.reference.LlmReference
asMatryoshka, contribution, getNamingStrategy, toolInstances, toolObject, toolPrefix, tools, withUnfolding -
Methods inherited from class com.embabel.common.ai.prompt.PromptElement
getPromptContributionLocation, getRole -
Methods inherited from class com.embabel.common.ai.prompt.PromptContributor
promptContribution -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescription
String getDescription()
-
reference
LlmReference reference()
Create an LLM reference
-
-
-
-