agents

package
v1.801.490 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package agents is the typed client for the "agents" app's internal ops.

Every call here is a ZAP call BY NAME over the peer's unix socket — no URL, no env var, no HTTP round trip, and no way to reach the public edge by accident. That last one is not a style preference: agents's own callers used to reach it through CLOUD_COMMERCE_HTTP_URL, which defaulted to the api.hanzo.ai edge — the SAME binary — so the forwarder re-entered itself and the billing gate died of it. A call by name cannot express that mistake.

It depends on the CONTRACT (package plane) and never on agents's implementation, so importing it costs a caller nothing but the types it is already sending.

Index

Constants

View Source
const App = "agents"

App is the peer's name, which is also the socket it answers on. It is the ONE place this package spells it.

Variables

Ops is every op this peer answers, in the spelling the wire uses.

It exists so a test can hold this generated surface against the LIVE plane registry and fail when they disagree — which is what lets this be generated from source without the document drifting away from the program. See plane_registry_test.go.

Functions

func AgentsRunOnBehalf

func AgentsRunOnBehalf(ctx context.Context, in *plane.RunOnBehalfIn) (*plane.RunOnBehalfOut, error)

AgentsRunOnBehalf run one agent turn as a linked user, for a chat bridge in another pr....

Calls plane.AgentsRunOnBehalf on agents over the peer plane.

func AgentsSessionsCount

func AgentsSessionsCount(ctx context.Context, in *plane.SessionMatchIn) (*plane.SessionCount, error)

AgentsSessionsCount count the live sessions a match selects.

Calls plane.AgentsSessionsCount on agents over the peer plane.

func AgentsSessionsStop

func AgentsSessionsStop(ctx context.Context, in *plane.SessionMatchIn) (*plane.SessionCount, error)

AgentsSessionsStop stop the live sessions a credential revoke tears down.

Calls plane.AgentsSessionsStop on agents over the peer plane.

Types

This section is empty.

Jump to

Keyboard shortcuts

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