API Overview
function call
@weave.op, allowing for usage like:
function calls
@weave.op, allowing for usage like:
Python SDK reference for weave.trace.op
callcall(
op: 'Op',
*args: 'Any',
__weave: 'WeaveKwargs | None' = None,
__should_raise: 'bool' = False,
__require_explicit_finish: 'bool' = False,
**kwargs: 'Any'
) → tuple[Any, Call] | Coroutine[Any, Any, tuple[Any, Call]]
@weave.op, allowing for usage like:
@weave.op
def add(a: int, b: int) -> int:
return a + b
result, call = add.call(1, 2)
callscalls(op: 'Op') → CallsIter
@weave.op, allowing for usage like:
@weave.op
def add(a: int, b: int) -> int:
return a + b
calls = add.calls()
for call in calls:
print(call)
Was this page helpful?