Class LiteralText
-
- All Implemented Interfaces:
-
com.embabel.agent.api.common.LlmReference,com.embabel.agent.api.common.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 LiteralText implements LlmReferenceProvider, LlmReference
Reference for literal text, in notes field. Held in memory.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Stringdescriptionprivate final Stringnotesprivate final StringTransformernamingStrategyprivate final PromptContributionLocationpromptContributionLocationprivate final Stringrole
-
Constructor Summary
Constructors Constructor Description LiteralText(String name, String description, String notes)
-
Method Summary
Modifier and Type Method Description StringgetName()StringgetDescription()final StringgetNotes()Stringnotes()Notes about this reference, such as usage guidance. LlmReferencereference()Create an LLM reference -
Methods inherited from class com.embabel.agent.api.common.LlmReference
asMatryoshka, contribution, getNamingStrategy, toolInstances, toolObject, toolPrefix, tools -
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()
-
notes
String notes()
Notes about this reference, such as usage guidance. Does not need to consider prompt prefix, name or description as they will be added automatically.
-
reference
LlmReference reference()
Create an LLM reference
-
-
-
-