Make the v4 examples consistent around `.data` wrapping

Merged
AK
2mo ago
+58-46

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): use result.Data in prints/checks for act, observe, and aggregated outputs; adopt extractResult/observeResult/actResult names.
    • Python (packages/sdk-python/examples): use result.data for model_dump and validations; rename to extract_result/observe_result/act_result; update custom_llm, custom_logging, extract, model_gateway, observe.
    • TypeScript (packages/sdk-ts/examples): log result.data and validate on .data; rename to extractResult/observeResult/actResult; update act, observe, extract, modelGateway, customLlm, customLogging.