Documentation
¶
Overview ¶
Package subagent runs stateless, tool-free LLM calls for an AI agent.
Index ¶
Constants ¶
View Source
const ( ProviderOpenAI = "openai" ProviderAnthropic = "anthropic" ProviderOllama = "ollama" )
View Source
const EmitInterval = types.AI_EMIT_INTERVAL * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct {
Name string
SystemPrompt string
Prompt string
EmitStream func(string)
StreamPrefix string
StreamSuffix string
FormatStreamChunk func(string) string
DisableStreamFraming bool
RunWithTools func(ctx context.Context, systemPrompt, prompt string, emit func(string)) (string, error)
}
Click to show internal directories.
Click to hide internal directories.