Documentation
¶
Index ¶
- func FormatCommandOutput(output *commandline.CommandOutput) string
- func FormatExecutedSteps(in []planexecute.ExecutedStep) string
- func FormatInput(input []adk.Message) string
- func GetCurrentTime() string
- func GetSessionValue[T any](ctx context.Context, key string) (T, bool)
- func NewChatModel(ctx context.Context, opts ...CreateChatModelOption) (cm model.ToolCallingChatModel, err error)
- func NewPanicErr(info any, stack []byte) error
- func PtrOf[T any](v T) *T
- func RepairJSON(input string) string
- func ToJSONString(v interface{}) string
- type CreateChatModelOption
- func WithDisableThinking(disable bool) CreateChatModelOption
- func WithMaxTokens(maxTokens int) CreateChatModelOption
- func WithResponseFormatJsonSchema(schema *openai.ChatCompletionResponseFormatJSONSchema) CreateChatModelOption
- func WithTemperature(temp float32) CreateChatModelOption
- func WithTopP(topP float32) CreateChatModelOption
- type TaskGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCommandOutput ¶
func FormatCommandOutput(output *commandline.CommandOutput) string
func FormatExecutedSteps ¶
func FormatExecutedSteps(in []planexecute.ExecutedStep) string
func FormatInput ¶
func GetCurrentTime ¶
func GetCurrentTime() string
func NewChatModel ¶
func NewChatModel(ctx context.Context, opts ...CreateChatModelOption) (cm model.ToolCallingChatModel, err error)
func NewPanicErr ¶
NewPanicErr creates a new panic error. panicErr is a wrapper of panic info and stack trace. it implements the error interface, can print error message of info and stack trace.
func RepairJSON ¶
func ToJSONString ¶
func ToJSONString(v interface{}) string
Types ¶
type CreateChatModelOption ¶
type CreateChatModelOption func(o *option)
func WithDisableThinking ¶
func WithDisableThinking(disable bool) CreateChatModelOption
func WithMaxTokens ¶
func WithMaxTokens(maxTokens int) CreateChatModelOption
func WithResponseFormatJsonSchema ¶
func WithResponseFormatJsonSchema(schema *openai.ChatCompletionResponseFormatJSONSchema) CreateChatModelOption
func WithTemperature ¶
func WithTemperature(temp float32) CreateChatModelOption
func WithTopP ¶
func WithTopP(topP float32) CreateChatModelOption
Click to show internal directories.
Click to hide internal directories.