mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-08 10:10:58 +00:00
fix(docs): correct format attribute in StructuredOutputs (#13340)
This commit is contained in:
parent
59a323e9a8
commit
ecab692ca1
1 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ try {
|
|||
|
||||
## Structured Output
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
### Basic Usage
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ const result = await client.session.prompt({
|
|||
path: { id: sessionId },
|
||||
body: {
|
||||
parts: [{ type: "text", text: "Research Anthropic and provide company info" }],
|
||||
outputFormat: {
|
||||
format: {
|
||||
type: "json_schema",
|
||||
schema: {
|
||||
type: "object",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue