runtime

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

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

Go to latest
Published: May 13, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MemoryExternalTools

func MemoryExternalTools(svc *memory.MemoryService) []platformtools.ExternalTool

MemoryExternalTools returns the assistant-memory platform tools wired with svc. Pass the same slice to every consumer so dispatch and listing share one set of executor instances.

Types

type Option

type Option func(*config)

func WithExternalTools

func WithExternalTools(extras []platformtools.ExternalTool) Option

func WithFeatureChecker

func WithFeatureChecker(checker platformtools.FeatureChecker) Option

WithFeatureChecker gates ExecuteTool dispatch on a per-organization feature flag. A nil checker grants every gated tool.

func WithSlackHTTPClient

func WithSlackHTTPClient(client *guardian.HTTPClient) Option

func WithTriggerTools

func WithTriggerTools(app *bgtriggers.App) Option

type Service

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

func NewService

func NewService(
	logger *slog.Logger,
	db *pgxpool.Pool,
	telemetrySvc platformtools.TelemetryService,
	auditLogger *audit.Logger,
	options ...Option,
) *Service

func (*Service) ExecuteTool

func (s *Service) ExecuteTool(ctx context.Context, plan *gateway.ToolCallPlan, env toolconfig.ToolCallEnv, requestBody io.Reader) (*gateway.PlatformResult, error)

Jump to

Keyboard shortcuts

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