Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientQuery ¶
type GPTResponse ¶
type HttpJsonStreamElement ¶
type RestrictConfig ¶
type RestrictConfig struct { // Chats is a list of chats that are going to be affected // by either In or Out function. Usernames []string // In defines a function that will be called if the chat // of an update will be found in the Chats list. In tele.HandlerFunc // Out defines a function that will be called if the chat // of an update will NOT be found in the Chats list. Out tele.HandlerFunc }
RestrictConfig defines config for Restrict middleware.
type StepType ¶
type StepType string
const ( StepHandleAgentAction StepType = "HandleAgentAction" StepHandleAgentFinish StepType = "HandleAgentFinish" StepHandleChainEnd StepType = "HandleChainEnd" StepHandleChainError StepType = "HandleChainError" StepHandleChainStart StepType = "HandleChainStart" StepHandleFinalAnswer StepType = "HandleFinalAnswer" StepHandleLLMGenerateContentEnd StepType = "HandleLLMGenerateContentEnd" StepHandleLLMGenerateContentStart StepType = "HandleLLMGenerateContentStart" StepHandleLlmEnd StepType = "HandleLlmEnd" StepHandleLlmError StepType = "HandleLlmError" StepHandleLlmStart StepType = "HandleLlmStart" StepHandleNewSession StepType = "HandleNewSession" StepHandleOllamaStart StepType = "HandleOllamaStart" StepHandleParseError StepType = "HandleParseError" StepHandleRetrieverEnd StepType = "HandleRetrieverEnd" StepHandleRetrieverStart StepType = "HandleRetrieverStart" StepHandleSourceAdded StepType = "HandleSourceAdded" StepHandleToolEnd StepType = "HandleToolEnd" StepHandleToolError StepType = "HandleToolError" StepHandleToolStart StepType = "HandleToolStart" StepHandleVectorFound StepType = "HandleVectorFound" )
type ToolCalls ¶
type ToolCalls []ToolCall
ToolCalls is a custom type that will allow us to implement the driver.Valuer and sql.Scanner interfaces on a slice of ToolCall.
Click to show internal directories.
Click to hide internal directories.