Toggle Menu
Prev Up Next

# `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]

  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]