Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOpenAiEngine ¶
Types ¶
type ExecuteToolStep ¶ added in v0.2.24
type ExecuteToolStep struct {
Tools map[string]interface{}
}
func (ExecuteToolStep) Start ¶ added in v0.2.24
func (e ExecuteToolStep) Start( ctx context.Context, input ToolCompletionResponse, ) (steps.StepResult[map[string]interface{}], error)
type Step ¶
type Step struct { Settings *settings.StepSettings // contains filtered or unexported fields }
func NewStep ¶ added in v0.2.24
func NewStep(settings *settings.StepSettings) *Step
type ToolCallMerger ¶ added in v0.2.24
type ToolCallMerger struct {
// contains filtered or unexported fields
}
func NewToolCallMerger ¶ added in v0.2.24
func NewToolCallMerger() *ToolCallMerger
func (*ToolCallMerger) AddToolCalls ¶ added in v0.2.24
func (tcm *ToolCallMerger) AddToolCalls(toolCalls []go_openai.ToolCall)
func (*ToolCallMerger) GetToolCalls ¶ added in v0.2.24
func (tcm *ToolCallMerger) GetToolCalls() []go_openai.ToolCall
type ToolCompletionResponse ¶ added in v0.2.24
type ToolStep ¶ added in v0.2.24
type ToolStep struct { Settings *settings.StepSettings Tools []go_openai.Tool }
func (*ToolStep) SetStreaming ¶ added in v0.2.24
func (*ToolStep) Start ¶ added in v0.2.24
func (csf *ToolStep) Start( ctx context.Context, messages []*geppetto_context.Message, ) (steps.StepResult[ToolCompletionResponse], error)
type Transcription ¶ added in v0.2.18
type Transcription struct { File string `json:"file"` Response *openai.AudioResponse `json:"response"` // contains filtered or unexported fields }
type TranscriptionClient ¶ added in v0.2.18
type TranscriptionClient struct {
// contains filtered or unexported fields
}
func NewTranscriptionClient ¶ added in v0.2.18
func NewTranscriptionClient(apiKey, model, prompt, language string, temperature float32) *TranscriptionClient
func (*TranscriptionClient) TranscribeFile ¶ added in v0.2.18
func (tc *TranscriptionClient) TranscribeFile(mp3FilePath string, out chan<- Transcription, wg *sync.WaitGroup)
Click to show internal directories.
Click to hide internal directories.