Skip to content

Support OpenAI Responses API built-in tools ( web_search , file_search , code_interpreter ) in openai_responses provider #9530

Description

@Star-Moon10

Description / 描述

目前 openai_responses Provider 可正常调用 /v1/responses,
但 Dashboard 没有原生工具配置入口,也无法透传 tools / tool_choice。

希望支持 OpenAI Responses API 内置工具:

  • web_search
  • file_search
  • code_interpreter
  • image_generation(如适用)
  • computer_use(如适用)

希望能够在 Provider 或模型级别开关工具,并正确处理流式事件、
搜索引用 annotations 和工具执行状态。当前仅能使用 AstrBot 自己的网页搜索/
Function Calling 工具,无法使用上游 Responses 原生搜索。

Use Case / 使用场景

希望机器人在用户询问实时信息时,直接调用上游 Responses API 的原生 Web Search,
例如查询当天新闻、天气、股价、比赛结果、产品价格和技术文档,并在最终回复中保留搜索来源/引用。

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions