Documentation
¶
Overview ¶
Package appruntime implements capabilities granted to a current app credential. App authority is confined to that app; it never certifies a human identity.
Index ¶
- Constants
- Variables
- type AuthorizationRequired
- type Config
- type ListMembersOptions
- type ModelStream
- type ScheduleReconciler
- type Service
- func (h *Service) CreateRun(ctx context.Context, req wire.CreateRunRequest) (wire.CreateRunResponse, error)
- func (h *Service) Embed(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.EmbedResult, error)
- func (h *Service) GetCheckpoint(ctx context.Context, runID uuid.UUID) (json.RawMessage, error)
- func (h *Service) GetEnvVarValue(ctx context.Context, slug string) (wire.EnvVarValueResponse, error)
- func (h *Service) ImageGenerate(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.ImageResult, error)
- func (h *Service) LLMStream(ctx context.Context, runIDHeader string, req wire.LLMProxyRequest) (ModelStream, error)
- func (h *Service) ListMembers(ctx context.Context, opts ListMembersOptions) (wire.ListMembersResponse, error)
- func (h *Service) MCPToolCall(ctx context.Context, slug string, req wire.MCPToolCallRequest) (*wire.MCPToolCallResponse, error)
- func (h *Service) Print(ctx context.Context, req wire.PrintRequest) error
- func (h *Service) ResolveRun(ctx context.Context, runID uuid.UUID) (execution.Context, error)
- func (h *Service) RunComplete(ctx context.Context, req wire.RunCompleteRequest) error
- func (h *Service) ServiceProxy(ctx context.Context, slug string, req wire.ProxyRequest) (*http.Response, error)
- func (h *Service) SessionAppend(ctx context.Context, convID uuid.UUID, req wire.SessionAppendRequest, ...) (wire.SessionAppendResponse, error)
- func (h *Service) SessionCompact(ctx context.Context, convID uuid.UUID, req wire.SessionCompactRequest) (wire.SessionCompactResponse, error)
- func (h *Service) SessionLoad(ctx context.Context, convID uuid.UUID) (wire.SessionLoadResponse, error)
- func (h *Service) SpeechGenerate(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.SpeechResult, error)
- func (h *Service) Sync(ctx context.Context, req wire.SyncRequest) (wire.SyncResponse, error)
- func (h *Service) TopicSubscribe(ctx context.Context, slug string, convUUID uuid.UUID) error
- func (h *Service) TopicUnsubscribe(ctx context.Context, slug string, convUUID uuid.UUID) error
- func (h *Service) Transcribe(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.TranscriptionResult, error)
- func (h *Service) Upgrade(ctx context.Context, req wire.UpgradeRequest) error
- func (h *Service) UpsertEnvVar(ctx context.Context, slug string, req wire.EnvVarDef) error
Constants ¶
View Source
const ActionStringPreviewBytes = 8 * 1024 // 8 KiB
ActionStringPreviewBytes caps verbose stream-like fields kept in the runs.actions audit log.
Variables ¶
View Source
var ErrUpstream = errors.New("upstream operation failed")
Functions ¶
This section is empty.
Types ¶
type AuthorizationRequired ¶
func (*AuthorizationRequired) Error ¶
func (e *AuthorizationRequired) Error() string
type Config ¶
type Config struct {
DB *db.DB
Runtime *runtimesvc.Service
Encryptor secrets.Store
OAuthClient *oauth.Client
S3 *storage.S3Client
PubSub *realtime.PubSub
BridgeMgr runtimesvc.BridgePartsDeliverer
Scheduler ScheduleReconciler
PublicURL string
AgentBaseURL func(string) string
HTTPNetwork *networkpolicy.Policy
Logger *zap.Logger
Builder runtimesvc.UpgradeRunner
}
type ListMembersOptions ¶
type ModelStream ¶
type ScheduleReconciler ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateRun ¶
func (h *Service) CreateRun(ctx context.Context, req wire.CreateRunRequest) (wire.CreateRunResponse, error)
func (*Service) Embed ¶
func (h *Service) Embed(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.EmbedResult, error)
func (*Service) GetCheckpoint ¶
func (*Service) GetEnvVarValue ¶
func (*Service) ImageGenerate ¶
func (h *Service) ImageGenerate(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.ImageResult, error)
func (*Service) LLMStream ¶
func (h *Service) LLMStream(ctx context.Context, runIDHeader string, req wire.LLMProxyRequest) (ModelStream, error)
func (*Service) ListMembers ¶
func (h *Service) ListMembers(ctx context.Context, opts ListMembersOptions) (wire.ListMembersResponse, error)
ListMembers lists humans with direct or inherited grants on the current app. Directory entries describe membership, not execution authority or enrollment.
func (*Service) MCPToolCall ¶
func (h *Service) MCPToolCall(ctx context.Context, slug string, req wire.MCPToolCallRequest) (*wire.MCPToolCallResponse, error)
func (*Service) ResolveRun ¶
ResolveRun is the remote app callback gate. Native app-wide operations do not call it unless they associate their effects with an admitted run.
func (*Service) RunComplete ¶
func (*Service) ServiceProxy ¶
func (*Service) SessionAppend ¶
func (*Service) SessionCompact ¶
func (h *Service) SessionCompact(ctx context.Context, convID uuid.UUID, req wire.SessionCompactRequest) (wire.SessionCompactResponse, error)
func (*Service) SessionLoad ¶
func (*Service) SpeechGenerate ¶
func (h *Service) SpeechGenerate(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.SpeechResult, error)
func (*Service) Sync ¶
func (h *Service) Sync(ctx context.Context, req wire.SyncRequest) (wire.SyncResponse, error)
func (*Service) TopicSubscribe ¶
func (*Service) TopicUnsubscribe ¶
func (*Service) Transcribe ¶
func (h *Service) Transcribe(ctx context.Context, runIDHdr string, req wire.ModelProxyRequest) (*model.TranscriptionResult, error)
Click to show internal directories.
Click to hide internal directories.