slogobs

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlogObserver

type SlogObserver struct {
	sleipnir.BaseMiddleware
	Logger *slog.Logger
}

SlogObserver logs LLM calls and tool calls via slog. Nil Logger falls back to slog.Default().

func (*SlogObserver) OnLLMCall

func (o *SlogObserver) OnLLMCall(_ context.Context, req *sleipnir.LLMRequest, resp *sleipnir.LLMResponse, err error)

func (*SlogObserver) OnToolCall

func (o *SlogObserver) OnToolCall(_ context.Context, call *sleipnir.ToolCall, result *sleipnir.ToolResult, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL