Skip to main content

Module http

Module http 

Source
Expand description

ACT-HTTP protocol types for request/response serialization.

All types derive both Serialize and Deserialize so they can be used by servers (act-host), clients (act-bridge), and SDKs alike.

Structs§

ContentPart
A content part in a tool response.
ErrorResponse
Wrapper for error responses ({"error": ...}).
ListResourcesResponse
Response from POST /resources.
ListToolsResponse
Response from POST /tools.
MetadataRequest
Request body for POST /tools and QUERY /tools.
MetadataSchemaRequest
Request body for POST /metadata-schema.
ResourceInfo
Resource info returned by POST /resources.
ToolCallRequest
Request body for POST /tools/{name}.
ToolCallResponse
Response from POST /tools/{name}.
ToolDefinition
Tool definition returned in ListToolsResponse.
ToolError
Error object in error responses.

Constants§

HEADER_PROTOCOL_VERSION
HTTP header name for the protocol version.
PROTOCOL_VERSION
ACT-HTTP protocol version.

Functions§

error_kind_to_status
Map an ACT error kind to an HTTP status code per ACT-HTTP spec.