TraceConfig
TraceConfigDict
get_trace_config_dict
| Name | Description |
|---|---|
config | Either a TraceConfig object or a TraceConfigDict dictionary. |
Trace
__init__
| Name | Description |
|---|---|
config | Configuration for the trace, either as a TraceConfig object or a TraceConfigDict. |
writer | The LogWriter instance to use for writing log entries. |
set_input
| Name | Description |
|---|---|
input | The input string to set. |
set_input_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to update. |
input | The input string to set. |
set_output
| Name | Description |
|---|---|
output | The output string to set. |
set_output_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to update. |
output | The output string to set. |
generation
| Name | Description |
|---|---|
config | Configuration for the generation. |
tool_call
| Name | Description |
|---|---|
config | Configuration for the tool call. |
tool_call_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the tool call to. |
config | Configuration for the tool call. |
generation_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the generation to. |
config | Configuration for the generation. |
add_error
| Name | Description |
|---|---|
config | Configuration for the error. |
error_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the error to. |
config | Configuration for the error. |
retrieval
| Name | Description |
|---|---|
config | Configuration for the retrieval. |
retrieval_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the retrieval to. |
config | Configuration for the retrieval. |
span
| Name | Description |
|---|---|
config | Configuration for the span. |
span_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the span to. |
config | Configuration for the span. |
feedback
| Name | Description |
|---|---|
feedback | The feedback to add. |
feedback_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the feedback to. |
feedback | The feedback to add. |
add_tag_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
id | The ID of the trace to add the tag to. |
key | The tag key. |
value | The tag value. |
add_attachment
| Name | Description |
|---|---|
attachment | The attachment to add. |
add_attachment_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the attachment to. |
attachment | The attachment to add. |
end_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to end. |
data | Additional data to include in the end event. |
event_
| Name | Description |
|---|---|
writer | The LogWriter instance to use. |
trace_id | The ID of the trace to add the event to. |
id | The ID of the event. |
event | The name of the event. |
tags | Optional tags to associate with the event. |
metadata | Optional metadata to include with the event. |