diff --git a/openapi/agent-sdk.json b/openapi/agent-sdk.json index 88edf87c..983f34ed 100644 --- a/openapi/agent-sdk.json +++ b/openapi/agent-sdk.json @@ -952,7 +952,7 @@ }, "tools": [ { - "name": "BashTool" + "name": "TerminalTool" }, { "name": "FileEditorTool" @@ -2198,7 +2198,7 @@ "description": "List of tools to initialize for the agent.", "examples": [ { - "name": "BashTool", + "name": "TerminalTool", "params": {} }, { @@ -2339,7 +2339,7 @@ "llm" ], "title": "Agent", - "description": "Main agent implementation for OpenHands.\n\nThe Agent class provides the core functionality for running AI agents that can\ninteract with tools, process messages, and execute actions. It inherits from\nAgentBase and implements the agent execution logic.\n\nExample:\n >>> from openhands.sdk import LLM, Agent, Tool\n >>> llm = LLM(model=\"claude-sonnet-4-20250514\", api_key=SecretStr(\"key\"))\n >>> tools = [Tool(name=\"BashTool\"), Tool(name=\"FileEditorTool\")]\n >>> agent = Agent(llm=llm, tools=tools)" + "description": "Main agent implementation for OpenHands.\n\nThe Agent class provides the core functionality for running AI agents that can\ninteract with tools, process messages, and execute actions. It inherits from\nAgentBase and implements the agent execution logic.\n\nExample:\n >>> from openhands.sdk import LLM, Agent, Tool\n >>> llm = LLM(model=\"claude-sonnet-4-20250514\", api_key=SecretStr(\"key\"))\n >>> tools = [Tool(name=\"TerminalTool\"), Tool(name=\"FileEditorTool\")]\n >>> agent = Agent(llm=llm, tools=tools)" }, "AgentContext-Output": { "properties": { @@ -5565,7 +5565,7 @@ "version": { "type": "string", "title": "Version", - "default": "1.0.0a5" + "default": "1.0.0" }, "docs": { "type": "string", @@ -6215,9 +6215,9 @@ "name": { "type": "string", "title": "Name", - "description": "Name of the tool class, e.g., 'BashTool'. Import it from an `openhands.tools.` subpackage.", + "description": "Name of the tool class, e.g., 'TerminalTool'. Import it from an `openhands.tools.` subpackage.", "examples": [ - "BashTool", + "TerminalTool", "FileEditorTool", "TaskTrackerTool" ] @@ -6520,14 +6520,14 @@ { "$ref": "#/components/schemas/BrowserTypeAction" }, - { - "$ref": "#/components/schemas/ExecuteBashAction" - }, { "$ref": "#/components/schemas/FileEditorAction" }, { "$ref": "#/components/schemas/TaskTrackerAction" + }, + { + "$ref": "#/components/schemas/ExecuteBashAction" } ], "discriminator": { @@ -6547,9 +6547,9 @@ "openhands__tools__browser_use__definition__BrowserScrollAction-Output__1": "#/components/schemas/BrowserScrollAction", "openhands__tools__browser_use__definition__BrowserSwitchTabAction-Output__1": "#/components/schemas/BrowserSwitchTabAction", "openhands__tools__browser_use__definition__BrowserTypeAction-Output__1": "#/components/schemas/BrowserTypeAction", - "openhands__tools__execute_bash__definition__ExecuteBashAction-Output__1": "#/components/schemas/ExecuteBashAction", "openhands__tools__file_editor__definition__FileEditorAction-Output__1": "#/components/schemas/FileEditorAction", - "openhands__tools__task_tracker__definition__TaskTrackerAction-Output__1": "#/components/schemas/TaskTrackerAction" + "openhands__tools__task_tracker__definition__TaskTrackerAction-Output__1": "#/components/schemas/TaskTrackerAction", + "openhands__tools__terminal__definition__ExecuteBashAction-Output__1": "#/components/schemas/ExecuteBashAction" } }, "title": "Action" @@ -6630,14 +6630,14 @@ { "$ref": "#/components/schemas/BrowserObservation" }, - { - "$ref": "#/components/schemas/ExecuteBashObservation" - }, { "$ref": "#/components/schemas/FileEditorObservation" }, { "$ref": "#/components/schemas/TaskTrackerObservation" + }, + { + "$ref": "#/components/schemas/ExecuteBashObservation" } ], "discriminator": { @@ -6647,9 +6647,9 @@ "openhands__sdk__tool__builtins__finish__FinishObservation-Output__1": "#/components/schemas/FinishObservation", "openhands__sdk__tool__builtins__think__ThinkObservation-Output__1": "#/components/schemas/ThinkObservation", "openhands__tools__browser_use__definition__BrowserObservation-Output__1": "#/components/schemas/BrowserObservation", - "openhands__tools__execute_bash__definition__ExecuteBashObservation-Output__1": "#/components/schemas/ExecuteBashObservation", "openhands__tools__file_editor__definition__FileEditorObservation-Output__1": "#/components/schemas/FileEditorObservation", - "openhands__tools__task_tracker__definition__TaskTrackerObservation-Output__1": "#/components/schemas/TaskTrackerObservation" + "openhands__tools__task_tracker__definition__TaskTrackerObservation-Output__1": "#/components/schemas/TaskTrackerObservation", + "openhands__tools__terminal__definition__ExecuteBashObservation-Output__1": "#/components/schemas/ExecuteBashObservation" } }, "title": "Observation"