assistant

package
v0.1.81-dev.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConversationSummaryAAD

func ConversationSummaryAAD(id string) string

func ConversationTitleAAD

func ConversationTitleAAD(id string) string

func MemoryAAD

func MemoryAAD(id string) string

func MessageAAD

func MessageAAD(id string) string

func PanelNotesAAD

func PanelNotesAAD() string

func PlanCardAAD

func PlanCardAAD(id string) string

func PlanConfirmAAD

func PlanConfirmAAD(id string) string

func ProviderKeyAAD

func ProviderKeyAAD(p adminv1.AssistantProvider) string

Types

type Config

type Config struct {
	Store         *store.Store
	Vault         *vault.Vault
	Auth          *auth.Service
	Now           func() time.Time
	Log           *slog.Logger
	ProviderBases map[adminv1.AssistantProvider]string
	HTTPClients   map[adminv1.AssistantProvider]*http.Client
	Providers     map[adminv1.AssistantProvider]adapter
}

Config supplies the signed-in AssistantService dependencies. Endpoint overrides and clients exist only for tests; production uses the fixed HTTPS URLs in provider_prices.go.

type Service

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

func New

func New(c Config) *Service

New creates the AssistantService and its one guarded HTTP client per provider.

func (*Service) Chat

func (*Service) Handler

func (s *Service) Handler(opts ...connect.HandlerOption) (string, http.Handler)

func (*Service) Retention

func (s *Service) Retention(ctx context.Context, now time.Time) error

func (*Service) SetToolRuntime

func (s *Service) SetToolRuntime(runtime mcp.AssistantRuntime)

SetToolRuntime installs the MCP server once the authenticated admin API has been assembled.

Jump to

Keyboard shortcuts

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