a2a

package
v0.69.2 Latest Latest
Warning

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

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

Documentation

Overview

Package a2a adapts a registered A2A agent to SpeechKit's cascaded voice pipeline. SpeechKit retains STT/TTS custody; the remote endpoint owns agent semantics, memory, tools and authorization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Agent, error)

func (*Agent) Run

type Config

type Config struct {
	Endpoint      string
	TargetAgentID string
	SessionID     string
	HTTPClient    *http.Client
	Headers       HeaderProvider
}

type HeaderProvider

type HeaderProvider func(context.Context, RequestContext) (http.Header, error)

HeaderProvider supplies per-turn headers. It is deliberately generic: a self-hosted deployment may use a bearer key while a hosted connector can mint a capability lease and signed delegation without exposing either to SpeechKit clients.

type RequestContext

type RequestContext struct {
	TargetAgentID string
	SessionID     string
	RequestBody   []byte
}

RequestContext identifies the exact registered-agent turn for a header provider that mints short-lived authorization or a signed delegation.

Jump to

Keyboard shortcuts

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