Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions openapi/agent-sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@
},
"tools": [
{
"name": "BashTool"
"name": "TerminalTool"
},
{
"name": "FileEditorTool"
Expand Down Expand Up @@ -2198,7 +2198,7 @@
"description": "List of tools to initialize for the agent.",
"examples": [
{
"name": "BashTool",
"name": "TerminalTool",
"params": {}
},
{
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -5565,7 +5565,7 @@
"version": {
"type": "string",
"title": "Version",
"default": "1.0.0a5"
"default": "1.0.0"
},
"docs": {
"type": "string",
Expand Down Expand Up @@ -6215,9 +6215,9 @@
"name": {
"type": "string",
"title": "Name",
"description": "Name of the tool class, e.g., 'BashTool'. Import it from an `openhands.tools.<module>` subpackage.",
"description": "Name of the tool class, e.g., 'TerminalTool'. Import it from an `openhands.tools.<module>` subpackage.",
"examples": [
"BashTool",
"TerminalTool",
"FileEditorTool",
"TaskTrackerTool"
]
Expand Down Expand Up @@ -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": {
Expand All @@ -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"
Expand Down Expand Up @@ -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": {
Expand All @@ -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"
Expand Down