Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateParams ¶
type GenerateParams struct {
Temperature float64 // Controls randomness (0.0 to 1.0)
TopP float64 // Alternative to temperature for nucleus sampling
FrequencyPenalty float64 // Penalize frequent tokens (-2.0 to 2.0)
PresencePenalty float64 // Penalize tokens already present (-2.0 to 2.0)
StopSequences []string // Stop generation at these sequences
TopK int // Limit vocabulary to top K tokens
RepeatPenalty float64 // Penalize token repetition
Reasoning string // Reasoning mode for Claude models (none, minimal, comprehensive)
}
GenerateParams contains parameters for text generation
func DefaultGenerateParams ¶
func DefaultGenerateParams() *GenerateParams
DefaultGenerateParams returns default generation parameters
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bedrock implements the agent-sdk-go LLM interface on top of Amazon Bedrock's provider-agnostic Converse API (bedrockruntime.Converse).
|
Package bedrock implements the agent-sdk-go LLM interface on top of Amazon Bedrock's provider-agnostic Converse API (bedrockruntime.Converse). |
|
Package cachepolicy describes what prompt caching a provider actually supports, so callers are not misled about whether caching happened.
|
Package cachepolicy describes what prompt caching a provider actually supports, so callers are not misled about whether caching happened. |
Click to show internal directories.
Click to hide internal directories.