Documentation
¶
Overview ¶
Package ai provides the unified AI package for the core CLI.
It composes functionality from pkg/rag (vector search) and pkg/agentic (task management) into a single public API surface. New AI features should be added here; existing packages remain importable but pkg/ai is the canonical entry point.
Sub-packages composed:
- pkg/rag: Qdrant vector database + Ollama embeddings
- pkg/agentic: Task queue client and context building
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryRAGForTask ¶
QueryRAGForTask queries Qdrant for documentation relevant to a task. It builds a query from the task title and description, queries with sensible defaults, and returns formatted context. Returns "" on any error (e.g. Qdrant/Ollama not running) for graceful degradation.
Types ¶
type Event ¶
type Event struct {
Type string `json:"type"`
Timestamp time.Time `json:"timestamp"`
AgentID string `json:"agent_id,omitempty"`
Repo string `json:"repo,omitempty"`
Duration time.Duration `json:"duration,omitempty"`
Data map[string]any `json:"data,omitempty"`
}
Event represents a recorded AI/security metric event.
Click to show internal directories.
Click to hide internal directories.