Skip to content

Commit d5e0b7e

Browse files
committed
add strict example
1 parent 80a60da commit d5e0b7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/tool-call/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3434
},
3535
"unit": { "type": "string", "enum": ["celsius", "fahrenheit"] },
3636
},
37-
"required": ["location"],
37+
"required": ["location", "unit"],
38+
"additionalProperties": false
3839
}))
40+
.strict(true)
3941
.build()?,
4042
})
4143
.build()?;

0 commit comments

Comments
 (0)