package
0.1.1
Repository: https://github.com/ksred/llm.git
Documentation: pkg.go.dev

# Functions

NewProviderError creates a new ProviderError.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Common errors that may be returned by the LLM package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Common errors that may be returned by the LLM package.
Common errors that may be returned by the LLM package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Common errors that may be returned by the LLM package.
Common errors that may be returned by the LLM package.
Common errors that may be returned by the LLM package.

# Structs

APIError represents an error from the LLM provider.
ChatRequest represents a request for chat completion.
ChatResponse represents a chat completion response.
CompletionRequest represents a request for text completion.
CompletionResponse represents a completion response.
Message represents a single message in a conversation.
MetricsCallbacks defines callback functions for various metrics events.
ProviderError wraps an error from an LLM provider with additional context.
Response represents a common response structure.
Usage tracks token usage for the request and response.

# Type aliases

Role represents the role of a message sender.