make_invalid_tool_call#
- langchain_core.output_parsers.openai_tools.make_invalid_tool_call(raw_tool_call: Dict[str, Any], error_msg: str | None) InvalidToolCall [source]#
Create an InvalidToolCall from a raw tool call.
- Parameters:
raw_tool_call (Dict[str, Any]) – The raw tool call.
error_msg (str | None) – The error message.
- Returns:
An InvalidToolCall instance with the error message.
- Return type: