Documentation ¶
Index ¶
Constants ¶
View Source
const PromptsPath = "/v1/traceloop/prompts"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackoffConfig ¶
type BackoffConfig struct {
MaxRetries uint64
}
type Completion ¶
type Config ¶
type Config struct { BaseURL string APIKey string TracerName string ServiceName string PollingInterval time.Duration BackoffConfig BackoffConfig Exporter trace.SpanExporter }
type LLMSpan ¶
type LLMSpan struct {
// contains filtered or unexported fields
}
func (*LLMSpan) LogCompletion ¶
type Prompt ¶
type Prompt struct { Vendor string `json:"vendor"` Model string `json:"model"` Mode string `json:"mode"` Temperature float32 `json:"temperature"` TopP float32 `json:"top_p"` Stop []string `json:"stop"` FrequencyPenalty float32 `json:"frequency_penalty"` PresencePenalty float32 `json:"presence_penalty"` Messages []Message `json:"messages"` }
type Task ¶
type Task struct { Name string `json:"name"` // contains filtered or unexported fields }
type Traceloop ¶
type Traceloop struct {
// contains filtered or unexported fields
}
func (*Traceloop) NewWorkflow ¶
func (instance *Traceloop) NewWorkflow(ctx context.Context, attrs WorkflowAttributes) *Workflow
type Workflow ¶
type Workflow struct { Attributes WorkflowAttributes `json:"workflow_attributes"` // contains filtered or unexported fields }
type WorkflowAttributes ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.