galileo_observe.schema package#

Submodules#

galileo_observe.schema.transaction module#

class TransactionRecordType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: str, Enum

llm = 'llm'#
chat = 'chat'#
chain = 'chain'#
tool = 'tool'#
agent = 'agent'#
retriever = 'retriever'#
class TransactionLoggingMethod(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: str, Enum

py_langchain = 'py_langchain'#
py_langchain_async = 'py_langchain_async'#
py_logger = 'py_logger'#
pydantic model TransactionRecord#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Fields:
field chain_id: Optional[str] = None#
field chain_root_id: Optional[str] = None#
field constructor: Optional[str] = None#
field created_at: str [Required]#
field finish_reason: Optional[str] = None#
field has_children: bool = False#
field input_text: str [Required]#
field latency_ms: Optional[int] = None#
field model: Optional[str] = None#
field node_id: str [Required]#
field node_type: TransactionRecordType [Required]#
field num_input_tokens: Optional[int] = None#
field num_output_tokens: Optional[int] = None#
field num_total_tokens: Optional[int] = None#
field output_logprobs: Optional[Dict] = None#
field output_text: Optional[str] = None#
field status_code: Optional[int] = None#
field tags: Optional[List[str]] = None#
field temperature: Optional[float] = None#
field user_metadata: Optional[Dict[str, Any]] = None#
field version: Optional[str] = None#
pydantic model TransactionRecordBatch#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Fields:
field client_version: Optional[str] = None#
field logging_method: TransactionLoggingMethod [Required]#
field records: List[TransactionRecord] [Required]#

Module contents#