渲染观测#
- 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]#
将代理中间步骤的“输出”部分渲染为提示内容。
- Parameters:
observations (List[Mapping[str, str]] | List[str] | Mapping[str, str] | str)
index (int)
- Return type:
元组[BaseMessage, int]