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 (*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 ¶
type Host interface {
Session() *runtime.AgentSession
EnableControl() (*runtime.SessionControl, error)
ObserveSessions(func(*runtime.AgentSession)) func()
NewSession(context.Context, *extensions.NewSessionOptions) (extensions.SessionReplacementResult, error)
SwitchSession(context.Context, string, *runtime.AgentSessionRuntimeSwitchOptions) (extensions.SessionReplacementResult, error)
Fork(context.Context, string, *extensions.ForkOptions) (runtime.AgentSessionRuntimeForkResult, error)
}
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.
Click to show internal directories.
Click to hide internal directories.