abi

acp

ACP (Agent Communication Protocol) for agent-to-agent communication.

Source: src/services/acp/mod.zig

Availability: Always enabled


API

pub const AgentCard

const source

ACP Agent Card — describes this agent’s capabilities

pub fn toJson(self: AgentCard, allocator: std.mem.Allocator) ![]u8

fn source

Serialize to JSON (escapes all string fields for safety)

pub const TaskStatus

const source

Task status in the ACP lifecycle

pub const Task

const source

ACP Task

pub fn toJson(self: *const Task, allocator: std.mem.Allocator) ![]u8

fn source

Serialize task to JSON

pub const Server

const source

ACP Server that manages tasks

pub fn createTask(self: *Server, message: []const u8) ![]const u8

fn source

Create a new task from a message

pub fn getTask(self: *Server, id: []const u8) ?*Task

fn source

Get a task by ID

pub fn taskCount(self: *const Server) u32

fn source

Get the number of tasks

pub fn serveHttp( allocator: std.mem.Allocator, io: std.Io, address: []const u8, card: AgentCard, ) HttpError!void

fn source

Run the ACP HTTP server loop. Blocks until the process exits. Caller must provide an I/O backend (e.g. from std.Io.Threaded).


Generated automatically by zig build gendocs

Zig Skill

Use the $zig Codex skill for ABI Zig 0.16-dev syntax updates, modular build graph guidance, and targeted validation workflows.