Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Feature] Define one provider-neutral web search capability contract

未关闭
#28 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

Start by reading CONTRIBUTING.md and comparing the implementations in #22 and #26, including their native-chat and delegated-task entry points. Define the provider-neutral request and result contract, then verify both adapters against shared fixtures, failure and cancellation behavior, response bounds, delegated evidence, and an unchanged model-visible schema.

由索引模型根据 Issue 内容生成。

描述

What outcome should OpenMuse handle?

OpenMuse should expose one stable public-web search capability to its agents even when the backing provider changes.

There are currently two open implementations of the same search_web capability:

  • #22 adds Parallel through a shared SearchService, with input shaped as { objective, search_queries[] } and results shaped around URLs/titles/excerpts/warnings/truncation.
  • #26 adds You.com directly in the conversation agent, with input shaped as { query, count } and a different result shape.

Both are reasonable provider integrations, but the fact that two contributors independently needed the same tool name with incompatible contracts suggests that provider identity is leaking into the agent-facing capability boundary.

Proposed behavior

Define one small, provider-neutral search_web contract owned by OpenMuse, then put provider adapters behind it.

The important invariant would be:

agent capability identity != provider identity

A minimal version could standardize:

  • one request schema for the model-facing tool;
  • one bounded result schema with source URL, title, excerpt/snippet, optional publication metadata, warnings, and truncation;
  • cancellation/deadline behavior;
  • treatment of results as untrusted evidence rather than authority;
  • how delegated tasks persist search evidence;
  • provider selection/configuration separately from the tool contract.

This does not need a generic plugin framework. A narrow SearchProvider/adapter seam would be enough if that is the smallest shape that keeps the model/tool contract stable.

That would let Parallel, You.com, or a future provider compete behind the same capability without changing prompts, model schemas, persisted evidence, or tests each time.

How would we verify it works?
  • Contract-test at least two provider adapters against the same request/result fixtures.
  • Run the same native-chat and delegated-task test against each adapter.
  • Verify provider failures remain visible rather than becoming empty success.
  • Verify cancellation and response-size bounds are preserved.
  • Verify delegated-task evidence has the same shape regardless of provider.
  • Verify changing providers does not change the model-visible tool schema.

This seems worth agreeing on as an issue first because it affects connector placement and architecture, per CONTRIBUTING.md.

AI-use note: I used an AI assistant to compare the current #22/#26 implementations and draft this issue; I verified the incompatible schemas and runtime placement against their current PR heads before filing.

主要语言
TypeScript
星标
5.2k
派生
730
平均合并
3 天 20 小时
30 天内合并 PR
96

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CopilotKit/openmuse 的其他 Issue

查看 CopilotKit/openmuse 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。