Make the v4 examples consistent around `.data` wrapping
Merged
AK
2mo ago+58+58+01234567890123456789-46-46-01234567890123456789
why
Standardizing the example snippets with .data wrapping
what changed
test plan
Summary by cubic
Standardized all v4 examples to read and print from .data instead of the full response, ensuring consistent payload handling across Go, Python, and TypeScript. Addresses Linear STG-2796.
- Refactors
- Go (
packages/sdk-go/examples): useresult.Datain prints/checks foract,observe, and aggregated outputs; adoptextractResult/observeResult/actResultnames. - Python (
packages/sdk-python/examples): useresult.dataformodel_dumpand validations; rename toextract_result/observe_result/act_result; updatecustom_llm,custom_logging,extract,model_gateway,observe. - TypeScript (
packages/sdk-ts/examples): logresult.dataand validate on.data; rename toextractResult/observeResult/actResult; updateact,observe,extract,modelGateway,customLlm,customLogging.
- Go (