Assistant markup is stripped from chat history when expressive mode is off
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
agent_activity.py から始め、_resolve_expressive_options() と、各ターンで _strip_assistant_markup を呼び出す else ブランチを特定し、その後そのヘルパーを読んで、過去のアシスタントメッセージからどのタグを削除するかを確認する。現行のスクラビング挙動をアサートしているテストを見つけるため、テストスイート内で _strip_assistant_markup または expressive markup の処理への参照を検索する。完了の条件は、expressive がオフの場合に <emotion/> や <break/> のようなタグがチャット履歴に残り、そのブランチでもうヘルパーが適用されず、影響を受けるテストが更新されてパスすることである。
索引モデルが issue の本文から書いたものです。
説明
When expressive is off, AgentActivity runs _strip_assistant_markup every turn (agent_activity.py, the else branch after _resolve_expressive_options()). It removes XML tags like <emotion/> and <break/> from past assistant messages in the chat history.
We don't use expressive mode. We use the provider plugins directly (Cartesia, Inworld…), and our own prompt tells the LLM which native tags to use. Because of the scrub, the LLM never sees the tags it used in earlier turns, so its delivery is inconsistent across the conversation.
With expressive on, the markup is kept in the chat history. Only with it off are the tags removed, which is the case where the user, not the framework, put them there.
Expected: when expressive is off, don't strip any tags from the chat history.
Version: livekit-agents 1.8.2
- 主要言語
- Python
- スター
- 14.6k
- フォーク
- 3.9k
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 263
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
livekit/agents のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
livekit/agents#8366 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
livekit/agents#8284 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ci: unit tests pin Python 3.12 while the package advertises 3.14 support再び着手できるかも @huong8373tt-beep が 8 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
livekit/agents#8231 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hosts再び着手できるかも @AbarnaaSree が 68 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
livekit/agents#7022 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
area/test type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Clodmony/starship-coop#70 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
punitarani/fli#270 ·
-
🐛 Bug 🔔 Pending processing
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
jumpserver/jumpserver#17980 ·
メンテナーはふだん 1 日以内に返信
-
community enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
namespace
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
EclipseFdn/open-vsx.org#15341 ·
メンテナーはふだん 1 日以内に返信