Documentation
¶
Overview ¶
Package bridge adapts an existing Orb runtime to Bridge without owning its lifetime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Command ¶ added in v0.15.0
Command is a slash command the instance runs: an extension's, a prompt template or a skill.
type Descriptor ¶ added in v0.14.0
type Descriptor struct {
Status string `json:"status,omitempty"`
Model string `json:"model,omitempty"`
Thinking string `json:"thinking,omitempty"`
Stats *runtime.SessionStats `json:"stats,omitempty"`
Commands []Command `json:"commands,omitempty"`
Waits bool `json:"waits"` // events.subscribe takes wait: a follower long-polls
Models []bridge.Model `json:"models,omitempty"`
Name string `json:"name,omitempty"`
CWD string `json:"cwd,omitempty"`
InstanceID string `json:"instance_id"`
Service string `json:"service"`
Generation string `json:"registration_generation"`
Target runtime.ControlTarget `json:"target"`
Methods []string `json:"methods"`
Input *runtime.InputRequest `json:"input,omitempty"`
}
Descriptor is what instances.describe reports about the attached runtime.
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.