render_observations#

langchain_cohere.react_multi_hop.prompt.render_observations(observations: 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 (List[Mapping[str, str]] | List[str] | Mapping[str, str] | str)

  • index (int)

Return type:

Tuple[BaseMessage, int]