-
Notifications
You must be signed in to change notification settings - Fork 113
1.3 update #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.3 update #32
Conversation
src/agent.py
Outdated
| JobProcess, | ||
| MetricsCollectedEvent, | ||
| RoomInputOptions, | ||
| WorkerOptions, |
There was a problem hiding this comment.
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 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
src/agent.py
Outdated
| await session.start( | ||
| agent=Assistant(), | ||
| room=ctx.room, | ||
| room_input_options=RoomInputOptions( |
There was a problem hiding this comment.
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(...))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
src/agent.py
Outdated
| usage_collector = metrics.UsageCollector() | ||
|
|
||
| @session.on("metrics_collected") | ||
| def _on_metrics_collected(ev: MetricsCollectedEvent): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed everything usage_collector related. Let me know if I should leave in log_usage.
Co-authored-by: Ben Cherry <[email protected]>
Co-authored-by: Ben Cherry <[email protected]>
Updates to
agent.pyto useAgentServerand new decorators in 1.3.