From 615b3a5ad012951a8bffa421fdab60a3cc976dcb Mon Sep 17 00:00:00 2001 From: Gavin Wang Date: Tue, 11 Nov 2025 00:36:35 +0800 Subject: [PATCH] fix(docs): correct typos in TypeScript examples in structured-output.mdx --- src/oss/langchain/structured-output.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oss/langchain/structured-output.mdx b/src/oss/langchain/structured-output.mdx index b471f74bc1..4bb26a0d6e 100644 --- a/src/oss/langchain/structured-output.mdx +++ b/src/oss/langchain/structured-output.mdx @@ -235,7 +235,7 @@ LangChain automatically uses `ProviderStrategy` when you pass a schema type dire messages: [{"role": "user", "content": "Extract contact info from: John Doe, john@example.com, (555) 123-4567"}] }); - result.structuredResponse; + console.log(result.structuredResponse); // { name: "John Doe", email: "john@example.com", phone: "(555) 123-4567" } ``` @@ -263,7 +263,7 @@ LangChain automatically uses `ProviderStrategy` when you pass a schema type dire messages: [{"role": "user", "content": "Extract contact info from: John Doe, john@example.com, (555) 123-4567"}] }); - result.structuredResponse; + console.log(result.structuredResponse); // { name: "John Doe", email: "john@example.com", phone: "(555) 123-4567" } ``` @@ -586,7 +586,7 @@ function toolStrategy( responseFormat: toolStrategy(ProductReview) }) - result = agent.invoke({ + const result = await agent.invoke({ "messages": [{"role": "user", "content": "Analyze this review: 'Great product: 5 out of 5 stars. Fast shipping, but expensive'"}] })