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]