Documentation ¶
Index ¶
- Constants
- func MakeChatCompletionRequest(ctx context.Context, l *slog.Logger, client *http.Client, url, apiKey string, ...) (*db.CreateChatCompletionResponse, error)
- func PollForCancellation(ctx context.Context, cancel func(), gdb *gorm.DB, obj Statuser, id string, ...)
- func RunTool(ctx context.Context, l *slog.Logger, ...) (string, error)
- func StreamChatCompletionRequest(ctx context.Context, l *slog.Logger, client *http.Client, url, apiKey string, ...) (<-chan db.ChatCompletionResponseChunk, error)
- type Statuser
Constants ¶
View Source
const ( EventTypeCallConfirm runner.EventType = "callConfirm" EventTypeCallConfirmResponse runner.EventType = "callConfirmResponse" )
Variables ¶
This section is empty.
Functions ¶
func PollForCancellation ¶
func PollForCancellation(ctx context.Context, cancel func(), gdb *gorm.DB, obj Statuser, id string, pollingInterval time.Duration)
PollForCancellation will poll for the run step with the given id. If the run step has been canceled, then the corresponding context will be canceled.
Types ¶
Click to show internal directories.
Click to hide internal directories.