交接过滤器
default_handoff_history_mapper
default_handoff_history_mapper(
transcript: list[TResponseInputItem],
) -> list[TResponseInputItem]
返回一个单独的助手消息,总结对话记录。
源代码位于 src/agents/handoffs/history.py
nest_handoff_history
nest_handoff_history(
handoff_input_data: HandoffInputData,
*,
history_mapper: HandoffHistoryMapper | None = None,
) -> HandoffInputData
为下一个代理总结之前的对话记录。
源代码位于 src/agents/handoffs/history.py
remove_all_tools
remove_all_tools(
handoff_input_data: HandoffInputData,
) -> HandoffInputData
过滤掉所有工具项:文件搜索、网络搜索和函数调用+输出。