Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrompt ¶
BuildPrompt constructs the full prompt sent to the LLM for a codegen target. Skills are not included here — they are provided to the model as tools via the Anthropic tool-calling API.
func BuildRetryPrompt ¶
func BuildRetryPrompt(target *parser.Target, ctx *vibecontext.Collected, vars map[string]string, failedScript, errorOutput string) string
BuildRetryPrompt constructs a prompt for retrying a failed script generation.
Types ¶
type Client ¶
type Client struct {
APIKey string
Model string
HTTPClient *http.Client // used for OpenAI only
// OnSkillInvoked is called each time the model invokes a skill tool
// during generation. May be nil.
OnSkillInvoked func(SkillEvent)
}
Client is an LLM API client that supports Anthropic and OpenAI.
type SkillEvent ¶ added in v0.0.3
type SkillEvent struct {
SkillName string // which skill the model invoked
Iteration int // which tool-use iteration (1-based)
}
SkillEvent describes a skill-related event during generation.
Click to show internal directories.
Click to hide internal directories.