Skip to content
Merged
Show file tree
Hide file tree
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
157 changes: 9 additions & 148 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3823,6 +3823,12 @@
"description": "Initial URL to open.",
"default": "https://www.bing.com"
},
"headless": {
"type": "boolean",
"title": "Headless",
"description": "Run the browser without a visible window.",
"default": false
},
"mode": {
"oneOf": [
{
Expand Down Expand Up @@ -4449,82 +4455,6 @@
"title": "LiveViewUrlEvent",
"description": "A live view URL became available."
},
"MCPServer": {
"properties": {
"name": {
"type": "string",
"minLength": 1,
"pattern": "^[A-Za-z0-9_.-]+$",
"title": "Name",
"description": "Unique name for this server."
},
"transport": {
"type": "string",
"enum": [
"stdio",
"streamable_http",
"sse"
],
"title": "Transport",
"description": "Transport used to reach the server."
},
"command": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Command",
"description": "Executable to launch, for the stdio transport."
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"title": "Args",
"description": "Command-line arguments, for the stdio transport."
},
"env": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Env",
"description": "Subprocess environment variables, for the stdio transport."
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"description": "Server endpoint URL, for the HTTP transports."
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Headers",
"description": "Request headers, for the HTTP transports."
}
},
"type": "object",
"required": [
"name",
"transport"
],
"title": "MCPServer",
"description": "An MCP server an environment connects to."
},
"MessageEvent": {
"properties": {
"kind": {
Expand Down Expand Up @@ -5128,16 +5058,16 @@
],
"title": "Start Url"
},
"session_id": {
"headless": {
"anyOf": [
{
"type": "string"
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Session Id"
"title": "Headless"
},
"mode": {
"anyOf": [
Expand Down Expand Up @@ -5197,75 +5127,6 @@
"type": "null"
}
]
},
"pip_packages": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Pip Packages"
},
"env": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Env"
},
"mcp_servers": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/MCPServer"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mcp Servers"
},
"servers": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/MCPServer"
},
"type": "array",
"minItems": 1
},
{
"type": "null"
}
],
"title": "Servers"
},
"namespace": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"title": "Namespace"
}
},
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "hai-agents"
version = "1.0.2"
version = "1.0.3"
description = "Python SDK for H Company's Computer-Use Agents: autonomous agents powered by Holo."
requires-python = ">=3.10"
readme = "README.md"
Expand Down
6 changes: 0 additions & 6 deletions src/hai_agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
JsonValue,
LiveViewUrlData,
LiveViewUrlEvent,
McpServer,
McpServerTransport,
MessageEvent,
MessageEventContentItem,
Metrics,
Expand Down Expand Up @@ -244,8 +242,6 @@
"LiveViewUrlData": ".types",
"LiveViewUrlEvent": ".types",
"MAX_REQUEST_BYTES": ".polling",
"McpServer": ".types",
"McpServerTransport": ".types",
"MessageEvent": ".types",
"MessageEventContentItem": ".types",
"Metrics": ".types",
Expand Down Expand Up @@ -444,8 +440,6 @@ def __dir__():
"LiveViewUrlData",
"LiveViewUrlEvent",
"MAX_REQUEST_BYTES",
"McpServer",
"McpServerTransport",
"MessageEvent",
"MessageEventContentItem",
"Metrics",
Expand Down
4 changes: 2 additions & 2 deletions src/hai_agents/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "hai_agents/1.0.2",
"User-Agent": "hai_agents/1.0.3",
"X-HCompany-Client-Name": "hai_agents",
"X-HCompany-Client-Version": "1.0.2",
"X-HCompany-Client-Version": "1.0.3",
"X-HCompany-Client-Type": "sdk",
"X-HCompany-Language": "Python",
"X-HCompany-Runtime": f"python/{platform.python_version()}",
Expand Down
Loading