Returns
This method returnsNone. Traces are stored in the context and saved later with save_context().
Example
You must call
start_collection_context() before using this method.Parameters
The name of the tool or function that was called.
The type of node. Options:
TOOL, CHAIN, RETRIEVER, LLM, CUSTOM. See Node Types for details.The input data passed to the tool.
The output data returned by the tool.
Error message if the tool call failed.
The time in milliseconds the tool call took.
Additional metadata about the trace.
ISO 8601 timestamp when the trace started.
ISO 8601 timestamp when the trace ended.