Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_REFLECTION_PROMPT = `` /* 932-byte string literal not displayed */ DEFAULT_CANDIDATES_PROMPT = `` /* 347-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candidates ¶
type Candidates struct {
Candidates []string `json:"candidates" jsonschema:"required,description=List of candidates for the next reasoning step"`
}
type ConversationHistory ¶
type Evaluation ¶
type Evaluation struct {
Score float64 `json:"score" jsonschema:"required,description=Rate from 1-100 where 1 is incorrect and 100 is correct"`
IsDone bool `json:"is_done" jsonschema:"required,description=Whether the final answer is found yet"`
Reasoning string `json:"reasoning" jsonschema:"required,description=Your reasoning and analysis in detail DON'T more than 50 words'"`
}
type SearchNode ¶
type SearchNode struct {
// contains filtered or unexported fields
}
func (*SearchNode) BackPropagate ¶
func (n *SearchNode) BackPropagate(reward float64)
func (*SearchNode) Expand ¶
func (n *SearchNode) Expand(ctx context.Context, node *SearchNode, evaluation *Evaluation)
func (*SearchNode) GetBestNode ¶
func (n *SearchNode) GetBestNode() *SearchNode
func (*SearchNode) Latest ¶
func (n *SearchNode) Latest() string
Click to show internal directories.
Click to hide internal directories.