Package com.embabel.agent.domain.library
Class ResearchReport
-
- All Implemented Interfaces:
-
com.embabel.agent.domain.library.ContentAsset,com.embabel.agent.domain.library.HasContent,com.embabel.agent.domain.library.InternetResources,com.embabel.common.ai.prompt.PromptContributor,com.embabel.common.ai.prompt.PromptElement,com.embabel.common.core.types.HasInfoString,com.embabel.common.core.types.Timestamped
@JsonClassDescription(value = "Research report, containing a topic, content and links") public class ResearchReport implements InternetResources, HasInfoString, ContentAsset
Reusable domain object for a research report. Open as subclasses can be created to hold additional information.
-
-
Constructor Summary
Constructors Constructor Description ResearchReport(String topic, String content, List<InternetResource> links)
-
Method Summary
Modifier and Type Method Description InstantgetTimestamp()final StringgetTopic()StringgetContent()Content associated with this object. List<InternetResource>getLinks()StringinfoString(Boolean verbose, Integer indent)StringtoString()Stringcontribution()-
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
-
-
Constructor Detail
-
ResearchReport
ResearchReport(String topic, String content, List<InternetResource> links)
-
-
Method Detail
-
getTimestamp
Instant getTimestamp()
-
getTopic
@JsonPropertyDescription(value = "Topic the report is about, e.g. 'Quantum Computing', 'AI Ethics', etc.") final String getTopic()
-
getContent
@JsonPropertyDescription(value = "The text of the research report") String getContent()
Content associated with this object.
-
getLinks
List<InternetResource> getLinks()
-
infoString
String infoString(Boolean verbose, Integer indent)
-
contribution
String contribution()
-
-
-
-