Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResponse ¶
func NewCommonResponse ¶
func NewCommonResponse() *CommonResponse
func (*CommonResponse) Error ¶
func (r *CommonResponse) Error() <-chan error
func (*CommonResponse) Message ¶
func (r *CommonResponse) Message() <-chan Delta
func (*CommonResponse) Tokens ¶
func (r *CommonResponse) Tokens() Tokens
type ContextWindowProvider ¶
type ContextWindowProvider interface {
ContextWindow() int64
}
type Request ¶
type Request interface {
Messages() []types.Message
History() []types.Message
ToolDefines() []ToolDefine
SystemPrompt() string
PromptCacheKey() string
SetHistory([]types.Message)
SetToolDefines([]ToolDefine)
SetSystemPrompt(string)
SetPromptCacheKey(string)
AppendHistory(...types.Message)
AppendToolDefines(...ToolDefine)
AppendSystemPrompt(...string)
}
func NewPromptRequest ¶
type ToolDefine ¶
type ToolDefine interface {
GetName() string
GetDescription() string
GetParameters() map[string]any
}
func NewToolDefine ¶
func NewToolDefine(name, description string, parameters map[string]any) ToolDefine
Click to show internal directories.
Click to hide internal directories.