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]