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)
Click to show internal directories.
Click to hide internal directories.