serverruntime

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodCommandAccess        = "server.command.access"
	MethodCommandContext       = "server.command.context"
	MethodCommandExecute       = "server.command.execute"
	MethodCommandExecuteText   = "server.command.execute_text"
	MethodCommandHasResource   = "server.command.has_resource"
	MethodCommandMemberRole    = "server.command.member_role"
	MethodCommandResolveLocale = "server.command.resolve_locale"
	MethodQueueEnqueueSteer    = "server.queue.enqueue_steer"
	MethodQueueEnqueueFollowUp = "server.queue.enqueue_follow_up"
	MethodResolveSkills        = "server.skills.resolve"
	MethodSynthesize           = "server.audio.synthesize"
	MethodTranscribe           = "server.audio.transcribe"
)

Variables

This section is empty.

Functions

func Handlers

func Handlers(commandHandler *command.Handler, queueHandler inbound.QueueCommandHandler, skillHandler *handlers.ContainerdHandler, audioService *audio.Service) map[string]runtimeRpc.Handler

Types

type Client

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

func NewClient

func NewClient(rpc *runtimeRpc.Client) *Client

func (*Client) CommandAccess

func (c *Client) CommandAccess(ctx context.Context, input command.ExecuteInput) (bool, error)

func (*Client) CurrentContext

func (c *Client) CurrentContext(ctx context.Context, botID string) (command.CurrentContext, error)

func (*Client) EnqueueFollowUp added in v0.20.0

func (c *Client) EnqueueFollowUp(ctx context.Context, input inbound.QueueCommandInput) error

func (*Client) EnqueueSteer added in v0.20.0

func (c *Client) EnqueueSteer(ctx context.Context, input inbound.QueueCommandInput) error

func (*Client) ExecuteResult

func (c *Client) ExecuteResult(ctx context.Context, input command.ExecuteInput) (*command.Result, error)

func (*Client) ExecuteWithInput

func (c *Client) ExecuteWithInput(ctx context.Context, input command.ExecuteInput) (string, error)

func (*Client) HasCommandResource

func (c *Client) HasCommandResource(resource string) bool

func (*Client) MemberRole

func (c *Client) MemberRole(ctx context.Context, botID, channelIdentityID string) (string, error)

func (*Client) ResolveLocale

func (c *Client) ResolveLocale(ctx context.Context, botID string) string

func (*Client) ResolveTextRequestedSkills

func (c *Client) ResolveTextRequestedSkills(ctx context.Context, botID string, names []string) ([]skills.ResolvedSkill, error)

func (*Client) Synthesize

func (c *Client) Synthesize(ctx context.Context, modelID, text string, overrideCfg map[string]any) ([]byte, string, error)

func (*Client) Transcribe

func (c *Client) Transcribe(ctx context.Context, modelID string, data []byte, filename, contentType string, overrideCfg map[string]any) (inbound.TranscriptionResult, error)

Jump to

Keyboard shortcuts

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