Documentation
¶
Index ¶
- type StructuredLogger
- func (l *StructuredLogger) LogPlanEnd(ctx context.Context, requestID, assistantID string, err error) error
- func (l *StructuredLogger) LogPlanStart(ctx context.Context, requestID, assistantID string, ...) error
- func (l *StructuredLogger) LogStep(ctx context.Context, record execution.ExecutionLogRecord) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructuredLogger ¶
type StructuredLogger struct {
// contains filtered or unexported fields
}
StructuredLogger implements ExecutionLogger using slog.
func NewStructuredLogger ¶
func NewStructuredLogger() *StructuredLogger
NewStructuredLogger creates a new JSON logger for execution events.
func (*StructuredLogger) LogPlanEnd ¶
func (l *StructuredLogger) LogPlanEnd(ctx context.Context, requestID, assistantID string, err error) error
LogPlanEnd implements execution.ExecutionLogger.
func (*StructuredLogger) LogPlanStart ¶
func (l *StructuredLogger) LogPlanStart(ctx context.Context, requestID, assistantID string, plan execution.ExecutionPlan) error
LogPlanStart implements execution.ExecutionLogger.
func (*StructuredLogger) LogStep ¶
func (l *StructuredLogger) LogStep(ctx context.Context, record execution.ExecutionLogRecord) error
LogStep implements execution.ExecutionLogger.
Click to show internal directories.
Click to hide internal directories.