Documentation
¶
Index ¶
- type Hook
- func (h *Hook) Close() error
- func (*Hook) Name() string
- func (h *Hook) OnPostAgentCall(_ context.Context, hctx *hooks.PostAgentCallContext)
- func (h *Hook) OnPostLLMCall(_ context.Context, hctx *hooks.PostLLMCallContext)
- func (h *Hook) OnPostMemoryCall(_ context.Context, hctx *hooks.PostMemoryCallContext)
- func (h *Hook) OnPostToolCall(_ context.Context, hctx *hooks.PostToolCallContext)
- func (h *Hook) OnPreAgentCall(_ context.Context, hctx *hooks.PreAgentCallContext)
- func (h *Hook) OnPreLLMCall(_ context.Context, hctx *hooks.PreLLMCallContext) (hooks.PreLLMCallResult, error)
- func (h *Hook) OnPreToolCall(_ context.Context, hctx *hooks.PreToolCallContext) (hooks.PreToolCallResult, error)
- func (*Hook) Priority() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook logs LLM, tool, and memory call details via slog, and optionally exports OpenTelemetry traces when OTEL_EXPORTER_OTLP_ENDPOINT is set.
func (*Hook) OnPostAgentCall ¶
func (h *Hook) OnPostAgentCall(_ context.Context, hctx *hooks.PostAgentCallContext)
func (*Hook) OnPostLLMCall ¶
func (h *Hook) OnPostLLMCall(_ context.Context, hctx *hooks.PostLLMCallContext)
func (*Hook) OnPostMemoryCall ¶
func (h *Hook) OnPostMemoryCall(_ context.Context, hctx *hooks.PostMemoryCallContext)
func (*Hook) OnPostToolCall ¶
func (h *Hook) OnPostToolCall(_ context.Context, hctx *hooks.PostToolCallContext)
func (*Hook) OnPreAgentCall ¶
func (h *Hook) OnPreAgentCall(_ context.Context, hctx *hooks.PreAgentCallContext)
func (*Hook) OnPreLLMCall ¶
func (h *Hook) OnPreLLMCall(_ context.Context, hctx *hooks.PreLLMCallContext) (hooks.PreLLMCallResult, error)
func (*Hook) OnPreToolCall ¶
func (h *Hook) OnPreToolCall(_ context.Context, hctx *hooks.PreToolCallContext) (hooks.PreToolCallResult, error)
Click to show internal directories.
Click to hide internal directories.