Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsClaudeEngine ¶
Types ¶
type Client ¶
Client represents the Claude API client.
type ErrorDetail ¶
ErrorDetail contains error details.
type ErrorResponse ¶
type ErrorResponse struct {
Error ErrorDetail `json:"error"`
}
ErrorResponse represents the API's error response.
type Request ¶
type Request struct { Model string `json:"model"` Prompt string `json:"prompt"` MaxTokensToSample int `json:"max_tokens_to_sample"` StopSequences []string `json:"stop_sequences,omitempty"` Temperature *float64 `json:"temperature,omitempty"` TopP *float64 `json:"top_p,omitempty"` TopK *int `json:"top_k,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` Stream bool `json:"stream"` }
Request represents the completion request payload.
type Step ¶
type Step struct {
Settings *settings.StepSettings
}
func (*Step) SetStreaming ¶
type SuccessfulResponse ¶
type SuccessfulResponse struct { Completion string `json:"completion"` StopReason string `json:"stop_reason"` Model string `json:"model"` }
SuccessfulResponse represents the API's successful response.
Click to show internal directories.
Click to hide internal directories.