Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles communication with Ollama
func (*Client) HasPromptManager ¶
HasPromptManager returns whether the prompt manager is initialized
func (*Client) RenderPrompt ¶
func (c *Client) RenderPrompt(promptType string, role string, ctx *prompts.TemplateContext) (string, error)
RenderPrompt renders a prompt template with the given context
type Config ¶
type Config struct {
BaseURL string
Model string
Timeout time.Duration
PromptsDir string
PromptsConfig string
}
Config holds LLM client configuration
Click to show internal directories.
Click to hide internal directories.