Skip to content

Conversation

@kath0la
Copy link
Contributor

@kath0la kath0la commented Nov 6, 2025

Updates to agent.py to use AgentServer and new decorators in 1.3.

@kath0la kath0la requested a review from bcherry November 6, 2025 20:58
JobProcess,
MetricsCollectedEvent,
RoomInputOptions,
WorkerOptions,
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be removed - make sure you do uv run ruff check --fix . and uv run ruff format .

await session.start(
agent=Assistant(),
room=ctx.room,
room_input_options=RoomInputOptions(
Copy link
Contributor

Choose a reason for hiding this comment

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

this was deprecated as well - you should be using room_options=room_io.RoomOptions(audio_input=room_io.AudioInputOptions(...))

usage_collector = metrics.UsageCollector()

@session.on("metrics_collected")
def _on_metrics_collected(ev: MetricsCollectedEvent):
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we can also remove the metrics collection stuff the way it is - i believe it was moved onto the various chat objects themselves

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.

3 participants