Help us shape the future of Go! Take the 2026 Go Developer Survey

agent

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package agent adapts an existing Orb runtime without owning its lifetime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

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

func Attach

func Attach(lifetime context.Context, host Host, options Options) (*Attachment, error)

func (*Attachment) Close

func (a *Attachment) Close() error

func (*Attachment) Invoke

func (a *Attachment) Invoke(ctx context.Context, method string, params json.RawMessage) (json.RawMessage, error)

func (*Attachment) SetGeneration

func (a *Attachment) SetGeneration(generation string) error

type Host

Host is the local non-owning attachment boundary shared by the SDK runtime and Orb's existing interactive host. It intentionally has no Dispose method.

type Options

type Options struct {
	InstanceID  string
	Store       connect.Store
	Authorize   func(connect.Request) bool
	LedgerQuota int
}

Jump to

Keyboard shortcuts

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