Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTool ¶
func NewTool() (tool.InvokableTool, error)
NewTool creates a new sequential thinking tool instance. Returns:
- tool: An invokable tool interface
- err: An error if tool creation fails
Types ¶
type ThoughtRequest ¶
type ThoughtRequest struct {
Thought string `json:"thought" jsonschema:"required" jsonschema_description:"Your current thinking step"`
ThoughtNumber int `json:"thought_number" jsonschema:"required" jsonschema_description:"Current thought number"`
TotalThoughts int `json:"total_thoughts" jsonschema:"required" jsonschema_description:"Estimated total thoughts needed"`
IsRevision bool `json:"is_revision,omitempty" jsonschema_description:"Whether this revises previous thinking"`
RevisesThought int `json:"revises_thought,omitempty" jsonschema_description:"Which thought is being reconsidered"`
BranchFromThought int `json:"branch_from_thought,omitempty" jsonschema_description:"Branching point thought number"`
BranchID string `json:"branch_id,omitempty" jsonschema_description:"Branch identifier"`
NeedsMoreThoughts bool `json:"needs_more_thoughts,omitempty" jsonschema_description:"If more thoughts are needed"`
NextThoughtNeeded bool `json:"next_thought_needed" jsonschema:"required" jsonschema_description:"Whether another thought step is needed"`
}
ThoughtRequest represents a single step in the sequential thinking process. It captures the thought content and metadata about the thinking process.
type ThoughtResult ¶
type ThoughtResult struct {
Content string `json:"content" jsonschema:"required" jsonschema_description:"Your current thinking step"`
ThoughtNumber int `json:"thought_number" jsonschema:"required" jsonschema_description:"Current thought number"`
TotalThoughts int `json:"total_thoughts" jsonschema:"required" jsonschema_description:"Estimated total thoughts needed"`
NextThoughtNeeded bool `json:"next_thought_needed" jsonschema:"required" jsonschema_description:"Which thought is needed"`
Branches []string `json:"branches" jsonschema_description:"Branch identifier"`
ThoughtHistoryLength int `json:"thought_history_length" jsonschema_description:"Length of thoughts history needed"`
}
ThoughtResult represents the formatted output of processing a thought. It contains the content to display and metadata about the thinking state.
Click to show internal directories.
Click to hide internal directories.