structs

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistantToolCallMessage added in v2.13.0

type AssistantToolCallMessage struct {
	Role      string     `json:"role"`
	Content   any        `json:"content"`
	ToolCalls []ToolCall `json:"tool_calls"`
}

type CommonResponse

type CommonResponse struct {
	ID      string `json:"id"`
	Choices []struct {
		Delta struct {
			Content   string          `json:"content"`
			ToolCalls []ToolCallDelta `json:"tool_calls,omitempty"`
		} `json:"delta"`
		FinishReason string `json:"finish_reason,omitempty"`
	} `json:"choices"`
}

type DefaultMessage added in v2.10.1

type DefaultMessage struct {
	Content string `json:"content"`
	Role    string `json:"role"`
}

type ExtraOptions

type ExtraOptions struct {
	IsGetSilent        bool
	IsGetWhole         bool
	IsGetCommand       bool
	IsNormal           bool
	IsGetCode          bool
	IsInteractive      bool
	IsInteractiveShell bool
	AutoExec           bool
	IsFind             bool   // IsFind enable web search functionality
	IsInteractiveFind  bool   // IsInteractiveFind enable interactive web search mode
	Verbose            bool   // Verbose enable detailed search output
	SearchProvider     string // Search provider: "exa" (default) or "google"
	IsToolFollowUp     bool   // IsToolFollowUp marks a request made to continue after tool execution
	ToolDepth          int    // ToolDepth tracks recursion depth of tool execution loops
}

type ImageParams

type ImageParams struct {
	Params
	Height            int
	Width             int
	Out               string
	ImgNegativePrompt string
	ImgRatio          string
	ImgCount          string
}

type Params

type Params struct {
	ApiModel        string
	ApiKey          string
	Provider        string
	Temperature     string
	Top_p           string
	Max_length      string
	Preprompt       string
	ThreadID        string
	Url             string
	PrevMessages    []any
	SystemPrompt    string
	RotateProviders string
	Tools           []any
}

type PowerBrainResponse added in v2.12.0

type PowerBrainResponse struct {
	Data string `json:"data"`
}

type ToolCall added in v2.13.0

type ToolCall struct {
	ID       string           `json:"id"`
	Type     string           `json:"type"`
	Function ToolCallFunction `json:"function"`
}

type ToolCallDelta added in v2.13.0

type ToolCallDelta struct {
	Index    int              `json:"index"`
	ID       string           `json:"id,omitempty"`
	Type     string           `json:"type,omitempty"`
	Function ToolCallFunction `json:"function"`
}

type ToolCallFunction added in v2.13.0

type ToolCallFunction struct {
	Name      string `json:"name"`
	Arguments string `json:"arguments"`
}

type ToolMessage added in v2.13.0

type ToolMessage struct {
	Role       string `json:"role"`
	ToolCallID string `json:"tool_call_id"`
	Name       string `json:"name"`
	Content    string `json:"content"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL