Skip to main content

record_response

Function record_response 

Source
pub fn record_response(
    span: &Span,
    response: &ChatResponse,
    config: &ObservabilityConfig,
)
Expand description

Record the response-side attributes (finish reason, usage, id, model) onto span, mirroring _get_response_attributes (observability.py:1488-1512).