Documentation
¶
Index ¶
- func CurrentTurn() int
- func Init() error
- func IsEnabled() bool
- func LogError(context string, err error)
- func LogRequest(providerName, model string, opts provider.CompletionOptions)
- func LogResponse(providerName string, resp provider.CompletionResponse)
- func Logger() *zap.Logger
- func MessagesField(messages []provider.Message) zap.Field
- func NextTurn() int
- func Sync() error
- func ToolCallsField(toolCalls []provider.ToolCall) zap.Field
- func ToolsField(tools []provider.Tool) zap.Field
- func UsageField(usage provider.Usage) zap.Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
func LogRequest(providerName, model string, opts provider.CompletionOptions)
LogRequest logs an LLM request in human-readable format
func LogResponse ¶
func LogResponse(providerName string, resp provider.CompletionResponse)
LogResponse logs an LLM response in human-readable format
func MessagesField ¶
MessagesField creates a zap field for messages
func ToolCallsField ¶
ToolCallsField creates a zap field for tool calls
func ToolsField ¶
ToolsField creates a zap field for tools
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.