react_multi_hop
#
Classes
Parses a message into agent actions/finish. |
Functions
Create an agent that enables multiple tools to be used in sequence to complete a task. |
|
|
Parse action selections from model output. |
parses string into key-value pairs, |
|
Parses a grounded_generation (from parse_actions) and documents (from convert_to_documents) into a (generation, CohereCitation list) tuple. |
|
|
Parses model-generated jsonified actions. |
Converts observations into a 'document' dict |
|
directly_answer is a special tool that's always presented to the model as an available tool. |
|
The returned function produces a BasePromptTemplate suitable for multi-hop. |
|
Renders an agent's intermediate steps into prompt content. |
|
|
Renders one or more BaseMessage implementations into prompt content. |
Renders the 'output' part of an Agent's intermediate step into prompt content. |
|
|
Renders the role of a message into prompt content. |
Renders the structured preamble part of the prompt content. |
|
|
Renders a tool into prompt content. Either a BaseTool instance, or, a JSON |