From 72f0df8a8b270431b266a6da96947bce3dbe5c6b Mon Sep 17 00:00:00 2001 From: ppodds Date: Tue, 24 Feb 2026 15:47:03 +0800 Subject: [PATCH 1/2] docs: fix the wrong member access --- packages/web/src/content/docs/sdk.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/content/docs/sdk.mdx b/packages/web/src/content/docs/sdk.mdx index 24546213be5..cc0bbee0339 100644 --- a/packages/web/src/content/docs/sdk.mdx +++ b/packages/web/src/content/docs/sdk.mdx @@ -148,7 +148,7 @@ const result = await client.session.prompt({ }) // Access the structured output -console.log(result.data.info.structured_output) +console.log(result.data.info.structured) // { company: "Anthropic", founded: 2021, products: ["Claude", "Claude API"] } ``` From 9aa7dd6ff2388fa63d6bb06b38e18b315937bd86 Mon Sep 17 00:00:00 2001 From: ppodds Date: Tue, 24 Feb 2026 16:10:37 +0800 Subject: [PATCH 2/2] docs: update zh-tw and zh-cn docs also --- packages/web/src/content/docs/zh-cn/sdk.mdx | 2 +- packages/web/src/content/docs/zh-tw/sdk.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/content/docs/zh-cn/sdk.mdx b/packages/web/src/content/docs/zh-cn/sdk.mdx index 121e423d10d..af5c4af16d4 100644 --- a/packages/web/src/content/docs/zh-cn/sdk.mdx +++ b/packages/web/src/content/docs/zh-cn/sdk.mdx @@ -148,7 +148,7 @@ const result = await client.session.prompt({ }) // Access the structured output -console.log(result.data.info.structured_output) +console.log(result.data.info.structured) // { company: "Anthropic", founded: 2021, products: ["Claude", "Claude API"] } ``` diff --git a/packages/web/src/content/docs/zh-tw/sdk.mdx b/packages/web/src/content/docs/zh-tw/sdk.mdx index 2ed216d8b91..0bd06d58ef7 100644 --- a/packages/web/src/content/docs/zh-tw/sdk.mdx +++ b/packages/web/src/content/docs/zh-tw/sdk.mdx @@ -148,7 +148,7 @@ const result = await client.session.prompt({ }) // Access the structured output -console.log(result.data.info.structured_output) +console.log(result.data.info.structured) // { company: "Anthropic", founded: 2021, products: ["Claude", "Claude API"] } ```