|
952 | 952 | }, |
953 | 953 | "tools": [ |
954 | 954 | { |
955 | | - "name": "BashTool" |
| 955 | + "name": "TerminalTool" |
956 | 956 | }, |
957 | 957 | { |
958 | 958 | "name": "FileEditorTool" |
|
2198 | 2198 | "description": "List of tools to initialize for the agent.", |
2199 | 2199 | "examples": [ |
2200 | 2200 | { |
2201 | | - "name": "BashTool", |
| 2201 | + "name": "TerminalTool", |
2202 | 2202 | "params": {} |
2203 | 2203 | }, |
2204 | 2204 | { |
|
2339 | 2339 | "llm" |
2340 | 2340 | ], |
2341 | 2341 | "title": "Agent", |
2342 | | - "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)" |
| 2342 | + "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)" |
2343 | 2343 | }, |
2344 | 2344 | "AgentContext-Output": { |
2345 | 2345 | "properties": { |
|
5565 | 5565 | "version": { |
5566 | 5566 | "type": "string", |
5567 | 5567 | "title": "Version", |
5568 | | - "default": "1.0.0a5" |
| 5568 | + "default": "1.0.0" |
5569 | 5569 | }, |
5570 | 5570 | "docs": { |
5571 | 5571 | "type": "string", |
|
6215 | 6215 | "name": { |
6216 | 6216 | "type": "string", |
6217 | 6217 | "title": "Name", |
6218 | | - "description": "Name of the tool class, e.g., 'BashTool'. Import it from an `openhands.tools.<module>` subpackage.", |
| 6218 | + "description": "Name of the tool class, e.g., 'TerminalTool'. Import it from an `openhands.tools.<module>` subpackage.", |
6219 | 6219 | "examples": [ |
6220 | | - "BashTool", |
| 6220 | + "TerminalTool", |
6221 | 6221 | "FileEditorTool", |
6222 | 6222 | "TaskTrackerTool" |
6223 | 6223 | ] |
|
6520 | 6520 | { |
6521 | 6521 | "$ref": "#/components/schemas/BrowserTypeAction" |
6522 | 6522 | }, |
6523 | | - { |
6524 | | - "$ref": "#/components/schemas/ExecuteBashAction" |
6525 | | - }, |
6526 | 6523 | { |
6527 | 6524 | "$ref": "#/components/schemas/FileEditorAction" |
6528 | 6525 | }, |
6529 | 6526 | { |
6530 | 6527 | "$ref": "#/components/schemas/TaskTrackerAction" |
| 6528 | + }, |
| 6529 | + { |
| 6530 | + "$ref": "#/components/schemas/ExecuteBashAction" |
6531 | 6531 | } |
6532 | 6532 | ], |
6533 | 6533 | "discriminator": { |
|
6547 | 6547 | "openhands__tools__browser_use__definition__BrowserScrollAction-Output__1": "#/components/schemas/BrowserScrollAction", |
6548 | 6548 | "openhands__tools__browser_use__definition__BrowserSwitchTabAction-Output__1": "#/components/schemas/BrowserSwitchTabAction", |
6549 | 6549 | "openhands__tools__browser_use__definition__BrowserTypeAction-Output__1": "#/components/schemas/BrowserTypeAction", |
6550 | | - "openhands__tools__execute_bash__definition__ExecuteBashAction-Output__1": "#/components/schemas/ExecuteBashAction", |
6551 | 6550 | "openhands__tools__file_editor__definition__FileEditorAction-Output__1": "#/components/schemas/FileEditorAction", |
6552 | | - "openhands__tools__task_tracker__definition__TaskTrackerAction-Output__1": "#/components/schemas/TaskTrackerAction" |
| 6551 | + "openhands__tools__task_tracker__definition__TaskTrackerAction-Output__1": "#/components/schemas/TaskTrackerAction", |
| 6552 | + "openhands__tools__terminal__definition__ExecuteBashAction-Output__1": "#/components/schemas/ExecuteBashAction" |
6553 | 6553 | } |
6554 | 6554 | }, |
6555 | 6555 | "title": "Action" |
|
6630 | 6630 | { |
6631 | 6631 | "$ref": "#/components/schemas/BrowserObservation" |
6632 | 6632 | }, |
6633 | | - { |
6634 | | - "$ref": "#/components/schemas/ExecuteBashObservation" |
6635 | | - }, |
6636 | 6633 | { |
6637 | 6634 | "$ref": "#/components/schemas/FileEditorObservation" |
6638 | 6635 | }, |
6639 | 6636 | { |
6640 | 6637 | "$ref": "#/components/schemas/TaskTrackerObservation" |
| 6638 | + }, |
| 6639 | + { |
| 6640 | + "$ref": "#/components/schemas/ExecuteBashObservation" |
6641 | 6641 | } |
6642 | 6642 | ], |
6643 | 6643 | "discriminator": { |
|
6647 | 6647 | "openhands__sdk__tool__builtins__finish__FinishObservation-Output__1": "#/components/schemas/FinishObservation", |
6648 | 6648 | "openhands__sdk__tool__builtins__think__ThinkObservation-Output__1": "#/components/schemas/ThinkObservation", |
6649 | 6649 | "openhands__tools__browser_use__definition__BrowserObservation-Output__1": "#/components/schemas/BrowserObservation", |
6650 | | - "openhands__tools__execute_bash__definition__ExecuteBashObservation-Output__1": "#/components/schemas/ExecuteBashObservation", |
6651 | 6650 | "openhands__tools__file_editor__definition__FileEditorObservation-Output__1": "#/components/schemas/FileEditorObservation", |
6652 | | - "openhands__tools__task_tracker__definition__TaskTrackerObservation-Output__1": "#/components/schemas/TaskTrackerObservation" |
| 6651 | + "openhands__tools__task_tracker__definition__TaskTrackerObservation-Output__1": "#/components/schemas/TaskTrackerObservation", |
| 6652 | + "openhands__tools__terminal__definition__ExecuteBashObservation-Output__1": "#/components/schemas/ExecuteBashObservation" |
6653 | 6653 | } |
6654 | 6654 | }, |
6655 | 6655 | "title": "Observation" |
|
0 commit comments