Versions in this module Expand all Collapse all v0 v0.1.1 Apr 22, 2026 v0.1.0 Apr 14, 2026 Changes in this version + func BuildSystemPrompt() string + func FormatValidationIssues(issues []ValidationIssue) string + func GetAvailableTaskNames() []string + func SerializeValidationResult(result *ValidationResult) (json.RawMessage, error) + type ChatMessage struct + Content string + Role string + type ChatRequest struct + MaxTokens int + Messages []ChatMessage + Model string + Stream bool + Temperature float64 + type ChatResponse struct + Choices []struct{ ... } + ID string + Model string + Usage struct{ ... } + type OpenRouterClient struct + func NewOpenRouterClient(apiKey string) *OpenRouterClient + func (c *OpenRouterClient) Chat(ctx context.Context, req *ChatRequest) (*ChatResponse, error) + func (c *OpenRouterClient) ChatStream(ctx context.Context, req *ChatRequest, onChunk func(string)) (*ChatResponse, error) + type Session struct + CreatedAt time.Time + Error string + FixAttempts int + GeneratedYaml string + ID string + MaxFixAttempts int + Response string + Status SessionStatus + UpdatedAt time.Time + Usage struct{ ... } + Validation *ValidationResult + WarningFixAttempted bool + func (s *Session) AppendResponse(chunk string) + func (s *Session) CanFixWarnings() bool + func (s *Session) CanRetryFix() bool + func (s *Session) Complete() + func (s *Session) GetSnapshot() *Session + func (s *Session) IncrementFixAttempts() int + func (s *Session) SetCancelFunc(cancel context.CancelFunc) + func (s *Session) SetError(err string) + func (s *Session) SetGeneratedYaml(yaml string) + func (s *Session) SetResponse(response string) + func (s *Session) SetUsage(prompt, completion, total int) + func (s *Session) SetValidation(validation *ValidationResult) + func (s *Session) SetWarningFixAttempted() + func (s *Session) Subscribe() <-chan *Session + func (s *Session) Unsubscribe(ch <-chan *Session) + func (s *Session) UpdateStatus(status SessionStatus) + type SessionManager struct + func NewSessionManager() *SessionManager + func (sm *SessionManager) CreateSession(maxFixAttempts int) *Session + func (sm *SessionManager) DeleteSession(id string) + func (sm *SessionManager) GetSession(id string) *Session + func (sm *SessionManager) Stop() + type SessionStatus string + const SessionStatusComplete + const SessionStatusError + const SessionStatusFixing + const SessionStatusPending + const SessionStatusStreaming + const SessionStatusValidating + type StreamChunk struct + Choices []struct{ ... } + ID string + Model string + type ValidationIssue struct + Message string + Path string + Type string + type ValidationResult struct + Issues []ValidationIssue + Valid bool + func ValidateGeneratedYaml(yamlContent string) *ValidationResult