capabilities

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type CapabilityExecution

type CapabilityExecution struct {
	Type         capabilities.Type   `json:"capability_id"`
	Result       capabilities.Output `json:"result"`
	ReturnToUser bool                `json:"return_to_user"`
}

func (CapabilityExecution) GetType

type CapabilityRunRequest

type CapabilityRunRequest struct {
	CallID string             `json:"call_id"`
	Type   capabilities.Type  `json:"type"`
	Input  capabilities.Input `json:"input"`
}

type CapabilityRunResponse

type CapabilityRunResponse struct {
	CapabilitiesRan []CapabilityExecution `json:"capabilities_ran"`
}

type ContextID

type ContextID string

type Controller

type Controller struct {
	Capabilities *capabilities.Registry
}

func NewController

func NewController(
	capabilities *capabilities.Registry,
) *Controller

func ProvideController

func ProvideController(
	capabilities *capabilities.Registry,

) *Controller

func (*Controller) RunCapabilities

func (c *Controller) RunCapabilities(ctx context.Context, req *RunCapabilitiesRequest) (*CapabilityRunResponse, error)

type RunCapabilitiesRequest

type RunCapabilitiesRequest struct {
	ConversationRaw   string                 `json:"conversation_raw"`
	ConversationID    ContextID              `json:"conversation_id"`
	CapabilitiesToRun []CapabilityRunRequest `json:"capabilities_to_run"`
}

Jump to

Keyboard shortcuts

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