swarmauri.core.tracing.IChainTracer module
- class swarmauri.core.tracing.IChainTracer.IChainTracer[source]
Bases:
ABC
Interface for a tracer supporting method chaining through a list of tuples. Each tuple in the list contains: trace context, function, args, and kwargs.
- abstract process_chain(chain)[source]
Processes a sequence of operations defined in a chain.
- Parameters:
chain (List[Tuple[Any, Callable[..., Any], List[Any], Dict[str, Any]]]) – A list where each tuple contains: - The trace context or reference required by the function. - The function (method of IChainTracer) to execute. - A list of positional arguments for the function. - A dictionary of keyword arguments for the function.
- Returns:
Returns self to allow further method chaining.
- Return type: