Documentation
¶
Index ¶
- func Attach(mux goahttp.Muxer, service *Service)
- type AgentChatOptions
- type AgentTool
- type ChatClient
- type FormatResult
- type Service
- func (s *Service) APIKeyAuth(ctx context.Context, key string, schema *security.APIKeyScheme) (context.Context, error)
- func (s *Service) CreditUsage(ctx context.Context, payload *gen.CreditUsagePayload) (*gen.CreditUsageResult, error)
- func (s *Service) HandleCompletion(w http.ResponseWriter, r *http.Request) error
- func (s *Service) ListChats(ctx context.Context, payload *gen.ListChatsPayload) (*gen.ListChatsResult, error)
- func (s *Service) LoadChat(ctx context.Context, payload *gen.LoadChatPayload) (*gen.Chat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentChatOptions ¶
type ChatClient ¶
type ChatClient struct {
// contains filtered or unexported fields
}
func NewChatClient ¶
func NewChatClient(logger *slog.Logger, tracerProvider trace.TracerProvider, meterProvider metric.MeterProvider, db *pgxpool.Pool, openRouter openrouter.Provisioner, chatClient *openrouter.ChatClient, env *environments.EnvironmentEntries, enc *encryption.Client, cacheImpl cache.Cache, guardianPolicy *guardian.Policy, funcCaller functions.ToolCaller, tcm tm.ToolMetricsProvider, ) *ChatClient
type FormatResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *slog.Logger, db *pgxpool.Pool, sessions *sessions.Manager, openRouter openrouter.Provisioner) *Service
func (*Service) APIKeyAuth ¶
func (*Service) CreditUsage ¶
func (s *Service) CreditUsage(ctx context.Context, payload *gen.CreditUsagePayload) (*gen.CreditUsageResult, error)
func (*Service) HandleCompletion ¶
HandleCompletion is a proxy to the OpenAI API that logs request and response data.
func (*Service) ListChats ¶
func (s *Service) ListChats(ctx context.Context, payload *gen.ListChatsPayload) (*gen.ListChatsResult, error)
Click to show internal directories.
Click to hide internal directories.