langchain_cohere.react_multi_hop.parsing.parse_jsonified_tool_use_generationΒΆ

langchain_cohere.react_multi_hop.parsing.parse_jsonified_tool_use_generation(tool_use_generation: str, tool_use_prefix: str) List[Dict][source]ΒΆ

Parses model-generated jsonified actions.

Expects input of the form β€œ{tool_use_prefix}: ```json

[{list of jsonified objects}]```”

outputs parsed list of jsonified objects.

Parameters
  • tool_use_generation (str) –

  • tool_use_prefix (str) –

Return type

List[Dict]