You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/sdk.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ try {
119
119
120
120
## Structured Output
121
121
122
-
You can request structured JSON output from the model by specifying an `outputFormat` with a JSON schema. The model will use a `StructuredOutput` tool to return validated JSON matching your schema.
122
+
You can request structured JSON output from the model by specifying an `format` with a JSON schema. The model will use a `StructuredOutput` tool to return validated JSON matching your schema.
123
123
124
124
### Basic Usage
125
125
@@ -128,7 +128,7 @@ const result = await client.session.prompt({
128
128
path: { id: sessionId },
129
129
body: {
130
130
parts: [{ type: "text", text: "Research Anthropic and provide company info" }],
0 commit comments