Versions in this module Expand all Collapse all v1 v1.0.0 Apr 7, 2024 Changes in this version + const Assistant + const EndTurn + const Haiku + const MESSAGES_URL + const MaxTokens + const MessageResp + const Opus + const SYS_PROMPT + const Sonnet + const StopSequence + const Text + const ToolResult + const ToolUse + const User + var ToolMap = map[string]useTool + type Content struct + Content string + Id string + Input map[string]any + Name string + Text string + ToolUseId string + Type ResponseType + type Conversation []Message + func (convo *Conversation) Converse(scanner *bufio.Scanner, t *[]Tool) + type Message struct + Content []Content + Role MessageRole + type MessageRole string + type Model string + type Request struct + MaxTokens int + Messages Conversation + Model Model + System string + Tools []Tool + func (r *Request) Post() (*Response, error) + type Response struct + Content []Content + ID string + Model Model + Role MessageRole + StopReason StopReason + StopSequence string + Type ResponseType + Usage struct{ ... } + type ResponseType string + type StopReason string + type Tool struct + Description string + InputSchema inputSchema + Name string + func LoadToolFromJSONFile(filename string) (*Tool, error) + func LoadToolsFromDirectory(dir string) ([]Tool, error)