convert_to_json_schema#
- langchain_core.utils.function_calling.convert_to_json_schema( ) dict[str, Any] [source]#
Convert a schema representation to a JSON schema.
- Parameters:
- Raises:
ValueError – If the input is not a valid OpenAI-format tool.
- Returns:
A JSON schema representation of the input schema.
- Return type:
dict[str, Any]