Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type LLMConfig ¶
type LLMConfig struct {
Temperature *float64 `json:"temperature,omitempty"`
MaxTokens *int32 `json:"max_tokens,omitempty"`
TopK *int32 `json:"top_k,omitempty"`
TopP *float64 `json:"top_p,omitempty"`
FrequencyPenalty *float64 `json:"frequency_penalty,omitempty"`
PresencePenalty *float64 `json:"presence_penalty,omitempty"`
JSONMode *bool `json:"json_mode,omitempty"`
}
type Prompt ¶
type Prompt struct {
WorkspaceID string `json:"workspace_id"`
PromptKey string `json:"prompt_key"`
Version string `json:"version"`
PromptTemplate *PromptTemplate `json:"prompt_template,omitempty"`
Tools []*Tool `json:"tools,omitempty"`
ToolCallConfig *ToolCallConfig `json:"tool_call_config,omitempty"`
LLMConfig *LLMConfig `json:"llm_config,omitempty"`
}
type PromptTemplate ¶
type PromptTemplate struct {
TemplateType TemplateType `json:"template_type"`
Messages []*Message `json:"messages,omitempty"`
VariableDefs []*VariableDef `json:"variable_defs,omitempty"`
}
func (*PromptTemplate) DeepCopy ¶
func (pt *PromptTemplate) DeepCopy() *PromptTemplate
type ToolCallConfig ¶
type ToolCallConfig struct {
ToolChoice ToolChoiceType `json:"tool_choice"`
}
func (*ToolCallConfig) DeepCopy ¶
func (tc *ToolCallConfig) DeepCopy() *ToolCallConfig
type ToolChoiceType ¶
type ToolChoiceType string
const ( ToolChoiceTypeAuto ToolChoiceType = "auto" ToolChoiceTypeNone ToolChoiceType = "none" )
type VariableDef ¶
type VariableDef struct {
Key string `json:"key"`
Desc string `json:"desc"`
Type VariableType `json:"type"`
}
func (*VariableDef) DeepCopy ¶
func (v *VariableDef) DeepCopy() *VariableDef
type VariableType ¶
type VariableType string
const ( VariableTypeString VariableType = "string" VariableTypePlaceholder VariableType = "placeholder" )
Click to show internal directories.
Click to hide internal directories.