Skip to main content

Module

Utilities for working with span types.

is_concludable_span_type

def is_concludable_span_type(span_type: SPAN_TYPE) -> bool
Check if the span type requires conclusion (via conclude()). Arguments
  • span_type: The type of span
Returns
  • True if the span type requires conclusion, False otherwise

is_textual_span_type

def is_textual_span_type(span_type: SPAN_TYPE) -> bool
Check if the span type has a string-based input and output. Arguments
  • span_type: The type of span
Returns
  • True if the span type has a string-based input and output, False otherwise