Skip to content

Discriminate anthropic response based on type property #5939

@alexander-alderman-webb

Description

@alexander-alderman-webb

Anthropic returns a union of types based on the type property.

#5715 (comment)

The desired outcome is to access information required on AI Client Spans based on concrete response types based on the type property rather than probing the response object. Narrow down the type and then we can see based on the properties that exist on the response type which branches can be removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions