Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ClassifierInfo = node.Info{
Name: "classifier",
Description: "used to classify the intent of the user.",
}
ClassifierInfo is the node.Info for the Classifier.
var CoderInfo = node.Info{
Name: "coder",
Description: "use to write some code, in various programming language",
Parameters: "The detailed summary of the code to write",
}
CoderInfo is the node.Info for the Coder.
var ConversationInfo = node.Info{
Name: "conversation",
Description: "used to have a general conversation with the user",
Parameters: "the user INPUT, as is. You must not modify or summarize it",
}
ConversationInfo is the node.Info for Conversation.
var StoryTellerInfo = node.Info{
Name: "storyteller",
Description: "use to invent a story, tell a tale or a lie.",
Parameters: "The subject of the story to write",
}
StoryTellerInfo is the node.Info for the StoryTeller.
var SummarizerInfo = node.Info{
Name: "summarizer",
Description: "use to summarize (resume, brief, shorten) some text, URL or document.",
Parameters: "either the full texAt to summarize or a valid URL. if the url schema is missing, assume https://",
}
SummarizerInfo is the node.Info for the Summarizer.
Functions ¶
This section is empty.
Types ¶
type Classifier ¶
A Classifier is a prompt that will try to classify an input into using one of of the tools it knows. The tools are different node.Node that are identified by their node.Info.
func NewClassifier ¶
func NewClassifier(tools ...node.Info) *Classifier
NewClassifier returns a new *Classifier.
type Conversation ¶
A Conversation is a prompt that can be used to have a generic conversation with the LLM.
func NewConversation ¶
func NewConversation() *Conversation
NewConversation returns a new *Conversation.
type StoryTeller ¶
A StoryTeller teller is a prompt tailored to invent stories.
type Summarizer ¶
A Summarizer is a prompt that will try to summuarize the given input. If the input is a valid URL, the content of that URL will first be retrieved using readability, then will be summarized.