Metadata
__init__
| Name | Type | Description |
|---|---|---|
metadata | Optional[Dict[str,Any]] | Metadata to initialize from |
Container
create
id
| Name | Description |
|---|---|
str | id of the container |
type
| Name | Description |
|---|---|
str | type of the container |
is_created
| Name | Description |
|---|---|
bool | True if the container has been created, False otherwise |
parent
| Name | Description |
|---|---|
[Container](/sdk/python/references/logger/models/container) | parent container |
add_generation
| Name | Description |
|---|---|
[Generation](/sdk/python/references/logger/components/generation) | Generation object |
add_tool_call
| Name | Description |
|---|---|
[ToolCall](/sdk/python/references/models/prompt) | ToolCall object |
add_event
| Name | Type | Description |
|---|---|---|
event_id | str | Unique identifier for the event. |
name | str | Name of the event. |
tags | Dict[str, str] | Additional key-value pairs to associate with the event. |
add_span
| Name | Description |
|---|---|
[Span](/sdk/python/references/logger/components/span) | Span object |
add_retrieval
| Name | Description |
|---|---|
[Retrieval](/sdk/python/references/logger/components/retrieval) | Retrieval object |
add_tags
| Name | Type | Description |
|---|---|---|
tags | Optional[Dict[str,str]] | Tags to add |
add_error
| Name | Type | Description |
|---|---|---|
error | GenerationError | Error to add |
set_input
| Name | Type | Description |
|---|---|---|
input | str | Input to set |
set_output
| Name | Type | Description |
|---|---|---|
output | str | Output to set |
add_metadata
| Name | Type | Description |
|---|---|---|
metadata | Optional[Dict[str,str]] | Metadata to add |
end
TraceContainer
add_generation
| Name | Description |
|---|---|
[Generation](/sdk/python/references/logger/components/generation) | Generation object |