Skip to content

Add AgentTask feature - #1045

Merged
toubatbrian merged 25 commits into
mainfrom
brian/agent-task
Feb 21, 2026
Merged

toubatbrian merged 25 commits into
mainfrom
brian/agent-task

Conversation

@toubatbrian

Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot

changeset-bot Bot commented Feb 12, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5bb9f77

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

chatgpt-codex-connector[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@toubatbrian toubatbrian changed the title Add AgentTask feature [draft] Add AgentTask feature Feb 12, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@toubatbrian toubatbrian changed the title [draft] Add AgentTask feature Add AgentTask feature Feb 14, 2026
Comment thread agents/src/stream/deferred_stream.ts
Comment thread agents/src/voice/agent.ts
@toubatbrian
toubatbrian requested a review from lukasIO February 20, 2026 07:07
@toubatbrian

Copy link
Copy Markdown
Contributor Author

@lukasIO can you take another pass, thanks!

@lukasIO lukasIO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

devin-ai-integration[bot]

This comment was marked as resolved.

@toubatbrian
toubatbrian merged commit 923e350 into main Feb 21, 2026
7 checks passed
@toubatbrian
toubatbrian deleted the brian/agent-task branch February 21, 2026 01:11
@github-actions github-actions Bot mentioned this pull request Feb 21, 2026
rjp44 added a commit to aplisay/llm-agent that referenced this pull request Sep 22, 2026
agents-js 1.0.46 adds an agent activity's metrics listeners to the
session's LLM, STT and TTS as new arrow functions, and close() passes a
different function to off(), so the listeners stay. An in-place
transfer_agent handover starts a new activity on the running session, and
from then on every metrics event reaches the session once per activity
that has held the call. The worker summed each copy, so LLM tokens, TTS
characters and milliseconds, and STT milliseconds were counted twice
after one handover and three times after two.

Every copy carries the same metrics object, so makeMetricsMeter meters
each object once. The runtime's meter and makeUsageMeter both use it. A
realtime model opens a new realtime session for each activity and closes
the old one, so its own metrics were not repeated, but the session TTS of
a text-output realtime agent was, and it is now metered once too.

agents-js 1.0.47 removes the listeners (livekit/agents-js#1045). The SDK
is not bumped here. After a bump there is nothing for the check to skip,
and the tests named for 1.0.46 will need updating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants