Class SpringResource
-
- 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 SpringResource implements LlmReferenceProvider, LlmReference
Contents of a Spring resource as an LlmReference. Read and held in memory.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringresourcePathprivate final Stringnameprivate final Stringdescriptionprivate final StringTransformernamingStrategyprivate final PromptContributionLocationpromptContributionLocationprivate final Stringrole
-
Constructor Summary
Constructors Constructor Description SpringResource(String resourcePath, String name, String description)
-
Method Summary
Modifier and Type Method Description final StringgetResourcePath()StringgetName()StringgetDescription()LlmReferencereference()Create an LLM reference Stringnotes()Notes about this reference, such as usage guidance. Booleanequals(Object other)IntegerhashCode()StringtoString()-
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
-
getResourcePath
final String getResourcePath()
-
getDescription
String getDescription()
-
reference
LlmReference reference()
Create an LLM reference
-
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.
-
-
-
-