Versions in this module Expand all Collapse all v0 v0.1.15 Oct 30, 2024 v0.1.14 Oct 30, 2024 Changes in this version + const Ai21CompletionReasonEndOfText + const Ai21CompletionReasonLength + const Ai21CompletionReasonStop + const AmazonCompletionReasonContentFiltered + const AmazonCompletionReasonFinish + const AmazonCompletionReasonMaxTokens + const AnthropicCompletionReasonEndTurn + const AnthropicCompletionReasonMaxTokens + const AnthropicCompletionReasonStopSequence + const AnthropicLatestVersion + const AnthropicMessageTypeImage + const AnthropicMessageTypeText + const AnthropicRoleAssistant + const AnthropicRoleUser + const AnthropicSystem + const CohereCompletionReasonComplete + const CohereCompletionReasonError + const CohereCompletionReasonErrorToxic + const CohereCompletionReasonMaxTokens + const MetaCompletionReasonLength + const MetaCompletionReasonStop + type Client struct + func NewClient(client *bedrockruntime.Client) *Client + func (c *Client) CreateCompletion(ctx context.Context, modelID string, messages []Message, ...) (*llms.ContentResponse, error) + type Message struct + Content string + MimeType string + Role llms.ChatMessageType + Type string