Skip to main content
View module source on GitHub

SpanConfig

Span config. This class represents a span config.

SpanConfigDict

Span config dict. This class represents a span config dictionary.

get_span_config_dict

Convert a span config to a span config dict else return the config. Arguments: Returns: dict[str, Any]: The span config dict.

Span

Span. This class represents a span.

__init__

Initialize a span. Arguments:

span

Add a span to this span. Arguments:

input

Set the input for this span. Arguments:

input_

Set the input for this span. Arguments:

add_error

Add an error to this span. Arguments: Returns:

error_

Add an error to this span. Arguments: Returns:

span_

Add a span to this span. Arguments: Returns:

generation

Add a generation to this span. Arguments: Returns:

tool_call

Add a tool call to this span. Arguments: Returns:

tool_call_

Add a tool call to this span. Arguments: Returns:

generation_

Add a generation to this span. Arguments: Returns:

add_attachment

Add an attachment to this span. Arguments:

add_attachment_

Static method to add an attachment to a span. Arguments:

retrieval

Add a retrieval to this span. Arguments: Returns:

retrieval_

Add a retrieval to this span. Arguments: Returns:

end_

End this span. Arguments:

add_tag_

Add a tag to this span. Arguments:

event_

Add an event to this span. Arguments: