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§
- Content
Part - A content part in a tool response.
- Error
Response - Wrapper for error responses (
{"error": ...}). - List
Resources Response - Response from
POST /resources. - List
Tools Response - Response from
POST /tools. - Metadata
Request - Request body for
POST /toolsandQUERY /tools. - Metadata
Schema Request - Request body for
POST /metadata-schema. - Resource
Info - Resource info returned by
POST /resources. - Tool
Call Request - Request body for
POST /tools/{name}. - Tool
Call Response - Response from
POST /tools/{name}. - Tool
Definition - Tool definition returned in
ListToolsResponse. - Tool
Error - 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.