langchain.agents.format_scratchpad.openai_functions.format_to_openai_function_messages

langchain.agents.format_scratchpad.openai_functions.format_to_openai_function_messages(intermediate_steps: Sequence[Tuple[AgentAction, str]]) List[BaseMessage][source]

将(AgentAction,工具输出)元组转换为FunctionMessages。

参数:

intermediate_steps:LLM迄今为止所采取的步骤,以及观察结果

返回:

发送到LLM进行下一个预测的消息列表

Parameters

intermediate_steps (Sequence[Tuple[AgentAction, str]]) –

Return type

List[BaseMessage]

Examples using format_to_openai_function_messages