Skip to content

Commit 0fc5692

Browse files
committed
chore: update comments and documentation for SequentialThinkingTool
1 parent f554a13 commit 0fc5692

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

internal/agent/tools/sequentialthinking.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,44 +87,44 @@ Each thought can build on, question, or revise previous insights as understandin
8787
"type": "string",
8888
"description": "Your current thinking step. Write in natural, user-friendly language. NEVER mention tool names (like \"grep_chunks\", \"knowledge_search\", \"web_search\", etc.). Instead, describe actions in plain language (e.g., \"I'll search for key terms\" instead of \"I'll use grep_chunks\"). Focus on WHAT you're trying to find and WHY, not HOW (which tools you'll use)."
8989
},
90-
"nextThoughtNeeded": {
90+
"next_thought_needed": {
9191
"type": "boolean",
9292
"description": "Whether another thought step is needed"
9393
},
94-
"thoughtNumber": {
94+
"thought_number": {
9595
"type": "integer",
9696
"description": "Current thought number (numeric value, e.g., 1, 2, 3)",
9797
"minimum": 1
9898
},
99-
"totalThoughts": {
99+
"total_thoughts": {
100100
"type": "integer",
101101
"description": "Estimated total thoughts needed (numeric value, e.g., 5, 10)",
102102
"minimum": 5
103103
},
104-
"isRevision": {
104+
"is_revision": {
105105
"type": "boolean",
106106
"description": "Whether this revises previous thinking"
107107
},
108-
"revisesThought": {
108+
"revises_thought": {
109109
"type": "integer",
110110
"description": "Which thought is being reconsidered",
111111
"minimum": 1
112112
},
113-
"branchFromThought": {
113+
"branch_from_thought": {
114114
"type": "integer",
115115
"description": "Branching point thought number",
116116
"minimum": 1
117117
},
118-
"branchId": {
118+
"branch_id": {
119119
"type": "string",
120120
"description": "Branch identifier"
121121
},
122-
"needsMoreThoughts": {
122+
"needs_more_thoughts": {
123123
"type": "boolean",
124124
"description": "If more thoughts are needed"
125125
}
126126
},
127-
"required": ["thought", "nextThoughtNeeded", "thoughtNumber", "totalThoughts"]
127+
"required": ["thought", "next_thought_needed", "thought_number", "total_thoughts"]
128128
}`),
129129
}
130130

@@ -139,14 +139,14 @@ type SequentialThinkingTool struct {
139139
// SequentialThinkingInput defines the input parameters for sequential thinking tool
140140
type SequentialThinkingInput struct {
141141
Thought string `json:"thought"`
142+
NextThoughtNeeded bool `json:"next_thought_needed"`
142143
ThoughtNumber int `json:"thought_number"`
143144
TotalThoughts int `json:"total_thoughts"`
144145
IsRevision bool `json:"is_revision,omitempty"`
145146
RevisesThought *int `json:"revises_thought,omitempty"`
146147
BranchFromThought *int `json:"branch_from_thought,omitempty"`
147148
BranchID string `json:"branch_id,omitempty"`
148149
NeedsMoreThoughts bool `json:"needs_more_thoughts,omitempty"`
149-
NextThoughtNeeded bool `json:"next_thought_needed"`
150150
}
151151

152152
// NewSequentialThinkingTool creates a new sequential thinking tool instance

0 commit comments

Comments
 (0)