Ask a question to get started
Enter to sendā¢Shift+Enter new line
convert_to_json_schema( schema: dict[str, Any] | type[BaseModel] | Callable | BaseTool,
schema
dict[str, Any] | type[BaseModel] | Callable | BaseTool
The schema to convert.
strict
bool | None
None
Convert a schema representation to a JSON schema.
If True, model output is guaranteed to exactly match the JSON Schema provided in the function definition.
True
If None, strict argument will not be included in function definition.