agentview

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package agentview projects the public API protos down to a compact, LLM-friendly shape for the system agent's tool outputs. The proto stays the canonical API contract; this layer drops noise (timestamps) and bare UUIDs the LLM would only corrupt when echoing back — every identifier the agent needs to pass to another tool is a slug/email, exposed elsewhere on the object.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Agent

func Agent(p *airlockv1.AgentInfo) map[string]any

Agent projects an AgentInfo (slug + status + running + your_access survive; UUIDs/timestamps/model config dropped).

func Agents

func Agents(ps []*airlockv1.AgentInfo) []map[string]any

Agents maps Agent over a slice.

func Strip

func Strip(m proto.Message, drop ...string) map[string]any

Strip projects m to a JSON-ready map keyed by snake_case proto field names, with the named fields removed. It is the generic "drop noise" half of the agent view: callers list the timestamp/UUID fields that carry no value to the LLM (or that have a slug/email handle elsewhere on the object). Fields with no human handle (run/build ids) are simply not dropped.

func StripEach

func StripEach[T proto.Message](ms []T, drop ...string) []map[string]any

StripEach maps Strip over a slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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