Skip to content

Commit ecab692

Browse files
authored
fix(docs): correct format attribute in StructuredOutputs (anomalyco#13340)
1 parent 59a323e commit ecab692

File tree

1 file changed

+2
-2
lines changed
  • packages/web/src/content/docs

1 file changed

+2
-2
lines changed

packages/web/src/content/docs/sdk.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ try {
119119

120120
## Structured Output
121121

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.
123123

124124
### Basic Usage
125125

@@ -128,7 +128,7 @@ const result = await client.session.prompt({
128128
path: { id: sessionId },
129129
body: {
130130
parts: [{ type: "text", text: "Research Anthropic and provide company info" }],
131-
outputFormat: {
131+
format: {
132132
type: "json_schema",
133133
schema: {
134134
type: "object",

0 commit comments

Comments
 (0)