langchain_cohere.react_multi_hop.prompt.render_observations¶

langchain_cohere.react_multi_hop.prompt.render_observations(observations: Union[List[Mapping[str, str]], List[str], Mapping[str, str], str], index: int) Tuple[BaseMessage, int][source]¶

Renders the ‘output’ part of an Agent’s intermediate step into prompt content.

Parameters
  • observations (Union[List[Mapping[str, str]], List[str], Mapping[str, str], str]) –

  • index (int) –

Return type

Tuple[BaseMessage, int]