Documentation
¶
Index ¶
- Constants
- type AsyncAlertHook
- type ClaudeCfg
- type CompositeLLMClient
- type Firestore
- type GeminiCfg
- type GenAI
- type LLMCfg
- func (x *LLMCfg) Configure(ctx context.Context) (gollem.LLMClient, error)
- func (x *LLMCfg) ConfigureEmbeddingClient(ctx context.Context) (interfaces.EmbeddingClient, error)
- func (x *LLMCfg) Flags() []cli.Flag
- func (x *LLMCfg) GetActiveProvider() string
- func (x *LLMCfg) IsClaudeConfigured() bool
- func (x *LLMCfg) IsGeminiConfigured() bool
- func (x LLMCfg) LogValue() slog.Value
- type Logger
- type MCPConfig
- func (x *MCPConfig) CreateMCPClients(ctx context.Context) ([]*mcp.Client, error)
- func (x *MCPConfig) CreateMCPToolSets(ctx context.Context) ([]gollem.ToolSet, error)
- func (x *MCPConfig) Flags() []cli.Flag
- func (x *MCPConfig) GetServerNames() []string
- func (x *MCPConfig) IsConfigured() bool
- func (x *MCPConfig) LoadConfig() error
- func (x MCPConfig) LogValue() slog.Value
- type MCPLocalConfig
- type MCPServerConfig
- type Policy
- type Sentry
- type Slack
- func (x *Slack) Configure() (*slack.Service, error)
- func (x *Slack) ConfigureOptional() (*slack.Service, error)
- func (x *Slack) ConfigureOptionalWithFrontendURL(frontendURL string) (*slack.Service, error)
- func (x *Slack) ConfigureWithFrontendURL(frontendURL string) (*slack.Service, error)
- func (x *Slack) Flags() []cli.Flag
- func (x *Slack) IsConfigured() bool
- func (x Slack) LogValue() slog.Value
- func (x *Slack) Verifier() model.PayloadVerifier
- type Storage
- type TestData
- type WebUI
- func (x *WebUI) Configure(ctx context.Context, repo interfaces.Repository, slackSvc *slack.Service) (usecase.AuthUseCaseInterface, error)
- func (x *WebUI) Flags() []cli.Flag
- func (x *WebUI) GetCallbackURL() string
- func (x *WebUI) GetFrontendURL() string
- func (x *WebUI) IsConfigured() bool
- func (x WebUI) LogValue() slog.Value
- func (x *WebUI) SetFrontendURL(url string)
Constants ¶
const Version = "1.0.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncAlertHook ¶ added in v0.3.0
AsyncAlertHook represents configuration for asynchronous alert hooks
func (*AsyncAlertHook) Flags ¶ added in v0.3.0
func (cfg *AsyncAlertHook) Flags() []cli.Flag
Flags returns CLI flags for async alert hook configuration
type ClaudeCfg ¶ added in v0.1.0
type ClaudeCfg struct {
ProjectID string
// contains filtered or unexported fields
}
type CompositeLLMClient ¶ added in v0.1.0
type CompositeLLMClient struct {
// contains filtered or unexported fields
}
func NewCompositeLLMClient ¶ added in v0.1.0
func NewCompositeLLMClient(contentClient, embeddingClient gollem.LLMClient) *CompositeLLMClient
func (*CompositeLLMClient) GenerateEmbedding ¶ added in v0.1.0
func (*CompositeLLMClient) NewSession ¶ added in v0.1.0
func (c *CompositeLLMClient) NewSession(ctx context.Context, options ...gollem.SessionOption) (gollem.Session, error)
type Firestore ¶
type Firestore struct {
// contains filtered or unexported fields
}
func (*Firestore) DatabaseID ¶ added in v0.5.0
DatabaseID returns the database ID (exported for migrate command)
func (*Firestore) IsConfigured ¶ added in v0.1.0
IsConfigured returns true if Firestore is configured
type GeminiCfg ¶
type GeminiCfg struct {
// contains filtered or unexported fields
}
type GenAI ¶ added in v0.4.0
type GenAI struct {
// contains filtered or unexported fields
}
GenAI represents configuration for GenAI functionality including prompt templates
func (*GenAI) GetPromptDir ¶ added in v0.4.0
GetPromptDir returns the configured prompt directory path
func (*GenAI) IsConfigured ¶ added in v0.4.0
IsConfigured returns true if prompt directory is configured
type LLMCfg ¶ added in v0.1.0
type LLMCfg struct {
// contains filtered or unexported fields
}
func (*LLMCfg) Configure ¶ added in v0.1.0
Configure creates and returns an LLM client, preferring Claude if configured
func (*LLMCfg) ConfigureEmbeddingClient ¶ added in v0.1.0
func (x *LLMCfg) ConfigureEmbeddingClient(ctx context.Context) (interfaces.EmbeddingClient, error)
ConfigureEmbeddingClient creates and returns an embedding client adapter from the configured LLM client
func (*LLMCfg) GetActiveProvider ¶ added in v0.1.0
GetActiveProvider returns the name of the active LLM provider
func (*LLMCfg) IsClaudeConfigured ¶ added in v0.1.0
IsClaudeConfigured returns true if Claude configuration is available
func (*LLMCfg) IsGeminiConfigured ¶ added in v0.1.0
IsGeminiConfigured returns true if Gemini configuration is available
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type MCPConfig ¶ added in v0.1.0
type MCPConfig struct {
Servers []MCPServerConfig `yaml:"servers,omitempty"`
Local []MCPLocalConfig `yaml:"local,omitempty"`
// contains filtered or unexported fields
}
MCPConfig represents MCP configuration
func (*MCPConfig) CreateMCPClients ¶ added in v0.1.0
CreateMCPClients creates MCP clients based on the configuration
func (*MCPConfig) CreateMCPToolSets ¶ added in v0.1.0
CreateMCPToolSets creates gollem tool sets from MCP clients
func (*MCPConfig) GetServerNames ¶ added in v0.1.0
GetServerNames returns a list of configured server names (both servers and local)
func (*MCPConfig) IsConfigured ¶ added in v0.1.0
IsConfigured returns true if MCP configuration file is specified
func (*MCPConfig) LoadConfig ¶ added in v0.1.0
LoadConfig loads MCP configuration from the specified YAML file
type MCPLocalConfig ¶ added in v0.1.0
type MCPLocalConfig struct {
Name string `yaml:"name"`
Command string `yaml:"command"`
Args []string `yaml:"args,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Disabled bool `yaml:"disabled,omitempty"`
}
MCPLocalConfig represents configuration for a local MCP server
type MCPServerConfig ¶ added in v0.1.0
type MCPServerConfig struct {
Name string `yaml:"name"`
Type string `yaml:"type"` // "sse" or "http"
URL string `yaml:"url"`
Headers map[string]string `yaml:"headers,omitempty"`
Disabled bool `yaml:"disabled,omitempty"`
}
MCPServerConfig represents configuration for a remote MCP server
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
func (*Policy) HasPolicies ¶ added in v0.1.0
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func (*Slack) ConfigureOptional ¶ added in v0.1.0
ConfigureOptional returns a Slack service if configured, or nil if not configured
func (*Slack) ConfigureOptionalWithFrontendURL ¶ added in v0.1.0
ConfigureOptionalWithFrontendURL returns a Slack service if configured, or nil if not configured
func (*Slack) ConfigureWithFrontendURL ¶
func (*Slack) IsConfigured ¶ added in v0.1.0
IsConfigured checks if Slack configuration is complete
func (*Slack) Verifier ¶
func (x *Slack) Verifier() model.PayloadVerifier
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) Bucket ¶ added in v0.1.0
Bucket returns the bucket name (exported for serve command)
func (*Storage) IsConfigured ¶ added in v0.1.0
IsConfigured returns true if Storage is configured
type TestData ¶
type TestData struct {
// contains filtered or unexported fields
}
func (*TestData) DetectDataPath ¶
func (*TestData) IgnoreDataPath ¶
type WebUI ¶
type WebUI struct {
// contains filtered or unexported fields
}
func (*WebUI) Configure ¶
func (x *WebUI) Configure(ctx context.Context, repo interfaces.Repository, slackSvc *slack.Service) (usecase.AuthUseCaseInterface, error)
func (*WebUI) GetCallbackURL ¶
func (*WebUI) GetFrontendURL ¶
func (*WebUI) IsConfigured ¶
func (*WebUI) SetFrontendURL ¶ added in v0.1.0
SetFrontendURL sets the frontend URL