Renders the structured preamble part of the prompt content.
Renders a tool into prompt content. Either a BaseTool instance, or, a JSON
schema must be provided.
Renders the 'output' part of an Agent's intermediate step into prompt content.
Converts observations into a 'document' dict
Renders an agent's intermediate steps into prompt content.
The returned function produces a BasePromptTemplate suitable for multi-hop.
directly_answer is a special tool that's always presented to the model as an
available tool. The model only ever invokes this whilst answering and no
AgentAction is produced, so it only needs to be added to the prompt.
Renders the role of a message into prompt content.
Renders one or more BaseMessage implementations into prompt content.