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 UploadFile ¶ added in v0.1.7
type UploadSpan ¶ added in v0.1.7
type UploadSpan struct {
StartedATMicros int64 `json:"started_at_micros"`
SpanID string `json:"span_id"`
ParentID string `json:"parent_id"`
TraceID string `json:"trace_id"`
DurationMicros int64 `json:"duration_micros"`
WorkspaceID string `json:"workspace_id"`
SpanName string `json:"span_name"`
SpanType string `json:"span_type"`
StatusCode int32 `json:"status_code"`
Input string `json:"input"`
Output string `json:"output"`
ObjectStorage string `json:"object_storage"`
SystemTagsString map[string]string `json:"system_tags_string"`
SystemTagsLong map[string]int64 `json:"system_tags_long"`
SystemTagsDouble map[string]float64 `json:"system_tags_double"`
TagsString map[string]string `json:"tags_string"`
TagsLong map[string]int64 `json:"tags_long"`
TagsDouble map[string]float64 `json:"tags_double"`
TagsBool map[string]bool `json:"tags_bool"`
}
type UploadType ¶ added in v0.1.7
type UploadType int64
const ( UploadTypeLong UploadType = 1 UploadTypeMultiModality UploadType = 2 )
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.