wire

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package wire holds the routing-fabric control-plane request/response shapes shared by the private router (control server) and the public CLI/daemon (control client). It carries no behavior — just the JSON contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentNode added in v0.3.0

type AgentNode struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	Focus        string `json:"focus,omitempty"`
	Parent       string `json:"parent,omitempty"`
	InboxChannel string `json:"inbox_channel"`
	Mode         string `json:"mode,omitempty"`
	Live         bool   `json:"live"`
}

AgentNode is one entry in the roster returned by GET /v1/agents. It carries the tree edge (Parent) and liveness so a console can render the hierarchy. Parent is the parent agent's id; the root has Parent == "".

type AgentSpec

type AgentSpec struct {
	Name         string `json:"name,omitempty"`
	Host         string `json:"host,omitempty"`
	InboxChannel string `json:"inbox_channel"`
	Focus        string `json:"focus,omitempty"`
	Interest     string `json:"interest,omitempty"`
	Parent       string `json:"parent,omitempty"`
	Mode         string `json:"mode,omitempty"`
	BatchMS      int    `json:"batch_ms,omitempty"`
	BatchN       int    `json:"batch_n,omitempty"`
	BatchBytes   int    `json:"batch_bytes,omitempty"`
	ModelTier    string `json:"model_tier,omitempty"`
}

AgentSpec is the JSON body of a register request (PUT /v1/agents/{id}). The agent id travels in the path, the capability key in the Authorization header; neither is part of this body.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL