github / github/copilot-sdk

Add searchMessages() method to query inside session history

オープン
#2,376 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Java
スター
10.5k
フォーク
1.5k
平均マージ
1日 11時間
マージ済み PR(30日)
127

説明

## Summary
Implement a searchMessages() method across all SDK languages to enable
in-session message filtering and search.

## Problem
Users currently has to manually filter through all
session events to find specific messages. This is cumbersome for:
- Debugging long conversations
- Finding specific agent responses
- Building audit/search features on top of the SDK

## Proposed Solution
Add async searchMessages(query, options) method that:
- Accepts string or regex patterns
- Filters by event type (optional)
- Supports case-sensitive/insensitive search
- Returns filtered SessionEvent[] matching criteria

## Example Usage
```typescript
// TypeScript
const results = await session.searchMessages("authentication");
const assistantMsgs = await session.searchMessages("deploy", {
eventType: "assistant.message"
});

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by locating the session history and SessionEvent APIs in each SDK language, then compare existing asynchronous query or filtering patterns. Done means searchMessages(query, options) is available across all SDKs and supports string or regex matching, event-type filtering, case sensitivity options, and filtered SessionEvent results.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript
領域
api, developer-experience
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。