Documentation
¶
Index ¶
- func GetLoggingHooks() *server.Hooks
- func InitLogger(levelStr string, transportType string) *slog.Logger
- func LogInitializeLLMCapabilities(sampling bool, openAI bool, openAIBaseURL *string, openAIModelName *string)
- func LogOpenAIRequest(ctx context.Context, modelName string, messages []mcp.PromptMessage) context.Context
- func LogOpenAIResponse(ctx context.Context, modelName string, responseModel interface{})
- func LogSamplingModelRequest(ctx context.Context, messages []mcp.PromptMessage) context.Context
- func LogSamplingModelResponse(ctx context.Context, responseModel interface{})
- func ParseLevel(s string) (slog.Level, error)
- type LoggingTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoggingHooks ¶
func LogOpenAIRequest ¶
func LogOpenAIResponse ¶
func LogSamplingModelRequest ¶
Types ¶
type LoggingTransport ¶
type LoggingTransport struct {
Transport http.RoundTripper
}
LoggingTransport wraps an http.RoundTripper to add structured logging
Click to show internal directories.
Click to hide internal directories.