Guide to migrating code to use version 2 api
…_type
→ …_schema
input_type / output_type
→ input_schema / output_schema
(TypeScript was already using “…Schema”.)
@trace
decorator and opper.traces.*
context manager with explicit span helpers:
model=
configuration={}
CallConfiguration(...)
disappears—use dot-notation keys in a plain dict:
_async
after the operation - for example call_async()
opper.functions.create / get / call
lets you store and version task definitions centrally.
Migrate step-by-step; each change is independent.
CallConfiguration
usage