Documentation
¶
Index ¶
- func ConversationSummaryAAD(id string) string
- func ConversationTitleAAD(id string) string
- func MemoryAAD(id string) string
- func MessageAAD(id string) string
- func PanelNotesAAD() string
- func PlanCardAAD(id string) string
- func PlanConfirmAAD(id string) string
- func ProviderKeyAAD(p adminv1.AssistantProvider) string
- type Config
- type Service
- func (s *Service) ApplyPlan(ctx context.Context, req *connect.Request[adminv1.ApplyPlanRequest]) (*connect.Response[adminv1.ApplyPlanResponse], error)
- func (s *Service) Chat(ctx context.Context, req *connect.Request[adminv1.ChatRequest], ...) error
- func (s *Service) DeleteAllConversations(ctx context.Context, ...) (*connect.Response[adminv1.DeleteAllConversationsResponse], error)
- func (s *Service) DeleteConversation(ctx context.Context, req *connect.Request[adminv1.DeleteConversationRequest]) (*connect.Response[adminv1.DeleteConversationResponse], error)
- func (s *Service) DeleteMemory(ctx context.Context, req *connect.Request[adminv1.DeleteMemoryRequest]) (*connect.Response[adminv1.DeleteMemoryResponse], error)
- func (s *Service) DismissPlan(ctx context.Context, req *connect.Request[adminv1.DismissPlanRequest]) (*connect.Response[adminv1.DismissPlanResponse], error)
- func (s *Service) ForgetAll(ctx context.Context, _ *connect.Request[adminv1.ForgetAllRequest]) (*connect.Response[adminv1.ForgetAllResponse], error)
- func (s *Service) GetAssistantAccess(ctx context.Context, _ *connect.Request[adminv1.GetAssistantAccessRequest]) (*connect.Response[adminv1.GetAssistantAccessResponse], error)
- func (s *Service) GetAssistantSettings(ctx context.Context, _ *connect.Request[adminv1.GetAssistantSettingsRequest]) (*connect.Response[adminv1.GetAssistantSettingsResponse], error)
- func (s *Service) GetConversation(ctx context.Context, req *connect.Request[adminv1.GetConversationRequest]) (*connect.Response[adminv1.GetConversationResponse], error)
- func (s *Service) Handler(opts ...connect.HandlerOption) (string, http.Handler)
- func (s *Service) ListConversations(ctx context.Context, req *connect.Request[adminv1.ListConversationsRequest]) (*connect.Response[adminv1.ListConversationsResponse], error)
- func (s *Service) ListMemory(ctx context.Context, _ *connect.Request[adminv1.ListMemoryRequest]) (*connect.Response[adminv1.ListMemoryResponse], error)
- func (s *Service) ListProviderModels(ctx context.Context, req *connect.Request[adminv1.ListProviderModelsRequest]) (*connect.Response[adminv1.ListProviderModelsResponse], error)
- func (s *Service) RemoveProviderKey(ctx context.Context, req *connect.Request[adminv1.RemoveProviderKeyRequest]) (*connect.Response[adminv1.RemoveProviderKeyResponse], error)
- func (s *Service) Retention(ctx context.Context, now time.Time) error
- func (s *Service) SaveMemory(ctx context.Context, req *connect.Request[adminv1.SaveMemoryRequest]) (*connect.Response[adminv1.SaveMemoryResponse], error)
- func (s *Service) SetProviderKey(ctx context.Context, req *connect.Request[adminv1.SetProviderKeyRequest]) (*connect.Response[adminv1.SetProviderKeyResponse], error)
- func (s *Service) SetToolRuntime(runtime mcp.AssistantRuntime)
- func (s *Service) StopTurn(ctx context.Context, req *connect.Request[adminv1.StopTurnRequest]) (*connect.Response[adminv1.StopTurnResponse], error)
- func (s *Service) UpdateAssistantSettings(ctx context.Context, ...) (*connect.Response[adminv1.UpdateAssistantSettingsResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConversationSummaryAAD ¶
func ConversationTitleAAD ¶
func MessageAAD ¶
func PanelNotesAAD ¶
func PanelNotesAAD() string
func PlanCardAAD ¶
func PlanConfirmAAD ¶
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 (*Service) Chat ¶
func (s *Service) Chat(ctx context.Context, req *connect.Request[adminv1.ChatRequest], stream *connect.ServerStream[adminv1.ChatResponse]) error
func (*Service) DeleteAllConversations ¶
func (*Service) DeleteConversation ¶
func (*Service) DeleteMemory ¶
func (*Service) DismissPlan ¶
func (*Service) GetAssistantAccess ¶
func (*Service) GetAssistantSettings ¶
func (*Service) GetConversation ¶
func (*Service) ListConversations ¶
func (*Service) ListMemory ¶
func (*Service) ListProviderModels ¶
func (*Service) RemoveProviderKey ¶
func (*Service) SaveMemory ¶
func (*Service) SetProviderKey ¶
func (*Service) SetToolRuntime ¶
func (s *Service) SetToolRuntime(runtime mcp.AssistantRuntime)
SetToolRuntime installs the MCP server once the authenticated admin API has been assembled.