The sequential thinking process relies on thought_input and thought_record objects.
thought_input is used to submit a new step in the reasoning process. It includes the thought text, the current thought_number, the total_thoughts expected, and flags like next_thought_needed or needs_more_thoughts. It also supports branching logic via revises_thought, branch_from_thought, and branch_id. You can also provide available_tools and recommended_tools to guide the model.
thought_record is the persisted version of a thought, which adds a session_id and a created_at timestamp.
const input: thought_input = {
thought: "I need to check the weather in London.",
thought_number: 1,
total_thoughts: 5,
next_thought_needed: true,
available_tools: ["get_weather"],
remaining_steps: ["Check temperature", "Check humidity"]
};