Add doc.go with package-level godoc for all 15 packages, runnable example functions for chat completion, streaming, embeddings, and error handling, plus build-tagged integration tests for live API validation.
10 lines
400 B
Go
10 lines
400 B
Go
// Package chat provides types for the Mistral chat completion API.
|
|
//
|
|
// Messages use a sealed interface pattern — create them with
|
|
// [UserMessage], [SystemMessage], [AssistantMessage], or [ToolMessage]
|
|
// struct literals.
|
|
//
|
|
// Content is polymorphic: it can be a plain string (via [TextContent]),
|
|
// nil, or a slice of [ContentChunk] values (text, image URL, document URL, audio).
|
|
package chat
|