Files
mistral-go-sdk/chat/doc.go
vikingowl 5471723acc feat: Phase 10 polish — package docs, examples, integration tests
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.
2026-03-05 20:12:02 +01:00

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