Documentation
¶
Index ¶
- Constants
- func NewNoopEmbeddingClient() interfaces.EmbeddingClient
- func NewNoopLLMClient() gollem.LLMClient
- type AsyncAlertHook
- type CircuitBreaker
- type ClaudeCfg
- type CommandConfig
- 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 PromptEntry
- 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 StrategySystemPrompts
- type TestData
- type Trace
- type UserSystemPrompt
- 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 ¶
func NewNoopEmbeddingClient ¶ added in v0.14.0
func NewNoopEmbeddingClient() interfaces.EmbeddingClient
NewNoopEmbeddingClient returns a no-op embedding client.
func NewNoopLLMClient ¶ added in v0.14.0
NewNoopLLMClient returns a no-op LLM client.
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 CircuitBreaker ¶ added in v0.14.0
CircuitBreaker represents configuration for alert circuit breaker
func (*CircuitBreaker) Flags ¶ added in v0.14.0
func (cfg *CircuitBreaker) Flags() []cli.Flag
Flags returns CLI flags for circuit breaker configuration
func (*CircuitBreaker) ToConfig ¶ added in v0.14.0
func (cfg *CircuitBreaker) ToConfig() circuitbreaker.Config
ToConfig converts to circuitbreaker.Config
type ClaudeCfg ¶ added in v0.1.0
type ClaudeCfg struct {
ProjectID string
// contains filtered or unexported fields
}
type CommandConfig ¶ added in v0.11.0
type CommandConfig struct {
Command string `yaml:"command"`
Args []string `yaml:"args,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
}
CommandConfig represents a common command execution configuration shared between local MCP servers and credential helpers.
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"`
CommandConfig `yaml:",inline"`
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"`
Helper *CommandConfig `yaml:"helper,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 PromptEntry ¶ added in v0.15.0
type PromptEntry struct {
ID string // frontmatter id (required, unique)
Name string // frontmatter name (required, human-readable display name)
Description string // frontmatter description (required)
Content string // markdown body after frontmatter
FilePath string // source file path (for debugging/logging)
}
PromptEntry represents a user-defined system prompt loaded from a markdown file.
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 StrategySystemPrompts ¶ added in v0.15.0
type StrategySystemPrompts struct {
// contains filtered or unexported fields
}
StrategySystemPrompts holds CLI configuration for loading multiple user system prompt files.
func NewStrategySystemPrompts ¶ added in v0.15.0
func NewStrategySystemPrompts(dirPath string) *StrategySystemPrompts
NewStrategySystemPrompts creates a StrategySystemPrompts with the given directory path. This is primarily for testing; in production, use Flags() to configure via CLI.
func (*StrategySystemPrompts) Configure ¶ added in v0.15.0
func (x *StrategySystemPrompts) Configure() ([]PromptEntry, error)
Configure reads all .md files in the configured directory and returns parsed PromptEntry slice. Returns empty slice if no directory is configured. Returns error if the directory doesn't exist, files are malformed, or ids are duplicated.
func (*StrategySystemPrompts) Flags ¶ added in v0.15.0
func (x *StrategySystemPrompts) Flags() []cli.Flag
Flags returns CLI flags for user system prompts configuration.
type TestData ¶
type TestData struct {
// contains filtered or unexported fields
}
func (*TestData) DetectDataPath ¶
func (*TestData) IgnoreDataPath ¶
type Trace ¶ added in v0.9.0
type Trace struct {
// contains filtered or unexported fields
}
Trace holds CLI configuration for trace data storage.
func (*Trace) Configure ¶ added in v0.9.0
func (x *Trace) Configure(ctx context.Context) (*traceAdapter.Repository, error)
Configure creates a GCS Trace Repository if bucket is configured. Returns nil if trace-bucket is not set (tracing disabled).
func (*Trace) IsConfigured ¶ added in v0.9.0
IsConfigured returns true if trace storage is configured.
type UserSystemPrompt ¶ added in v0.12.0
type UserSystemPrompt struct {
// contains filtered or unexported fields
}
UserSystemPrompt holds CLI configuration for user system prompt file.
func (*UserSystemPrompt) Configure ¶ added in v0.12.0
func (x *UserSystemPrompt) Configure() (string, error)
Configure reads the user system prompt file and returns its content. Returns empty string if no file path is configured.
func (*UserSystemPrompt) Flags ¶ added in v0.12.0
func (x *UserSystemPrompt) Flags() []cli.Flag
Flags returns CLI flags for user system prompt configuration.
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