Documentation
¶
Overview ¶
Package realtime binds intelligence.realtime/v1 to the Ext plugin engine. It transports explicit model-session operations and never opens devices or executes proposed tools.
Index ¶
- Constants
- Variables
- func Descriptor(identity plugin.Identity) plugin.Descriptor
- func PackageExecutable(options ExecutablePackage) (packagekit.Manifest, error)
- func RegisterProvider(registry *author.Registry, provider domain.Provider, ...) (*plugin.Descriptor, error)
- func ServeCurrentExecutable(ctx context.Context, id, version string, provider domain.Provider, ...) error
- func ServeStdio(ctx context.Context, identity plugin.Identity, provider domain.Provider, ...) error
- type Client
- type ExecutablePackage
- type Guest
- type SessionClient
- func (c *SessionClient) ClearInputAudio(ctx context.Context) error
- func (c *SessionClient) Close() error
- func (c *SessionClient) CloseContext(ctx context.Context) error
- func (c *SessionClient) CommitAudio(ctx context.Context) error
- func (c *SessionClient) Interrupt(ctx context.Context) error
- func (c *SessionClient) Receive(ctx context.Context) (domain.Event, error)
- func (c *SessionClient) Respond(ctx context.Context) error
- func (c *SessionClient) SendAudio(ctx context.Context, value []byte) error
- func (c *SessionClient) SendText(ctx context.Context, value string) error
- func (c *SessionClient) SendToolResult(ctx context.Context, callID string, result []byte) error
- func (c *SessionClient) TruncateAudio(ctx context.Context, itemID string, contentIndex, playedMS int) error
Constants ¶
const ContractName = "intelligence.realtime"
const ContractVersion = "v1"
const Protocol = ContractName + "/" + ContractVersion
Variables ¶
var ContractRef = plugin.ContractRef{Name: ContractName, Version: ContractVersion}
Functions ¶
func Descriptor ¶
func Descriptor(identity plugin.Identity) plugin.Descriptor
func PackageExecutable ¶
func PackageExecutable(options ExecutablePackage) (packagekit.Manifest, error)
func RegisterProvider ¶
func ServeCurrentExecutable ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client opens a model conversation through an already admitted Ext session.
func (*Client) Open ¶
func (c *Client) Open(ctx context.Context, request domain.OpenRequest) (*SessionClient, error)
type ExecutablePackage ¶
type ExecutablePackage struct{ ID, Version, Binary, OutputDir, OS, Arch string }
type Guest ¶
type Guest struct {
// contains filtered or unexported fields
}
Guest keeps one live model session per provider process. Hosts that need parallel conversations launch separate verified processes.
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient implements the portable realtime.Session and AudioControl.
func (*SessionClient) ClearInputAudio ¶
func (c *SessionClient) ClearInputAudio(ctx context.Context) error
func (*SessionClient) Close ¶
func (c *SessionClient) Close() error
func (*SessionClient) CloseContext ¶
func (c *SessionClient) CloseContext(ctx context.Context) error
func (*SessionClient) CommitAudio ¶
func (c *SessionClient) CommitAudio(ctx context.Context) error
func (*SessionClient) SendAudio ¶
func (c *SessionClient) SendAudio(ctx context.Context, value []byte) error
func (*SessionClient) SendText ¶
func (c *SessionClient) SendText(ctx context.Context, value string) error