Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SequentialThinkingTool ¶
type SequentialThinkingTool struct {
// contains filtered or unexported fields
}
SequentialThinkingTool implements the tools.Tool interface for sequential thinking
func (*SequentialThinkingTool) Definition ¶
func (t *SequentialThinkingTool) Definition() mcpapi.Tool
Definition returns the tool's definition for MCP registration
func (*SequentialThinkingTool) Execute ¶
func (t *SequentialThinkingTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcpapi.CallToolResult, error)
Execute executes the tool's logic
func (*SequentialThinkingTool) StdioOnly ¶ added in v0.59.93
func (t *SequentialThinkingTool) StdioOnly()
StdioOnly marks this tool as stdio-only. Thought history lives in this process, keyed by nothing the client sends, so a second instance behind a load balancer would answer with someone else's chain of thought or none at all. Making it stateless would mean handing the history back to the client on every call, which is a different tool.
type ThoughtData ¶
type ThoughtData struct {
Thought string `json:"thought"`
ThoughtNumber int `json:"thoughtNumber"`
NextThoughtNeeded bool `json:"nextThoughtNeeded"`
IsRevision bool `json:"isRevision,omitempty"`
RevisedText string `json:"revisedText,omitempty"`
ExploreLabel string `json:"exploreLabel,omitempty"`
}
ThoughtData represents a single thought in the sequential thinking process
Click to show internal directories.
Click to hide internal directories.