subagent

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrKeys

type AttrKeys struct {
	ID       string // e.g. "agent_id"
	Type     string // e.g. "agent_type"
	ParentID string // e.g. "parent_agent_id"
}

AttrKeys tells the OTEL receiver which attribute names to extract for subagent identity.

func (AttrKeys) Empty

func (k AttrKeys) Empty() bool

Empty returns true if no keys are configured.

func (AttrKeys) Extract

func (k AttrKeys) Extract(attrs map[string]any) Info

Extract reads subagent identity from a generic attribute map.

type Info

type Info struct {
	ID       string // unique subagent identifier
	Type     string // "Explore", "Plan", custom agent name
	ParentID string // parent subagent/session ID
}

Info holds provider-agnostic subagent identity.

func (Info) HasIdentity

func (i Info) HasIdentity() bool

HasIdentity returns true if any identity field is set.

Jump to

Keyboard shortcuts

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