Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultPrompter ¶
func SetDefaultPrompter(t *Prompter)
func WithPrompt ¶
Types ¶
type Prompt ¶
type Prompt struct {
Name string
Description string
Version string
Model string
Messages []Message
Temperature *float32
MaxTokens *int64
TopP *float32
TopK *int32
UseCache *bool
ToolChoice *string // "none", "auto", "required", "function"
ToolFunction *string
ResponseFormat *Response
Reasoning *Reasoning
Metadata *Metadata
}
type Prompter ¶
type Prompter struct {
// contains filtered or unexported fields
}
func DefaultPrompter ¶
func DefaultPrompter() *Prompter
func NewPrompter ¶
func NewPrompter(cli braintrust.Client, project string) *Prompter
type Schema ¶
type Schema struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Schema json.RawMessage `json:"schema,omitempty"`
Strict bool `json:"strict,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.