Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event int
Event represents a trace event type that can be selectively enabled.
const ( // AgentExec enables logging of agent execution start/end. AgentExec Event = iota // LLMRequest enables logging of LLM request details (system prompt, messages, tools). LLMRequest // LLMResponse enables logging of LLM response details (texts, function calls, token usage). LLMResponse // ToolExec enables logging of tool execution (name, args, result, duration). ToolExec // SubAgent enables logging of sub-agent start/end. SubAgent // ChildAgent enables logging of child agent start/end. ChildAgent // CustomEvent enables logging of strategy-defined custom events. CustomEvent )
type Option ¶
type Option func(*config)
Option configures the logger handler.
func WithEvents ¶
WithEvents enables only the specified event types. When not specified, all events are enabled.
func WithLogger ¶
WithLogger sets a custom slog.Logger. Default is a discard logger.
Click to show internal directories.
Click to hide internal directories.