Skip to content

send ServerInfo to CLI host on start#6260

Open
davidzhao wants to merge 2 commits into
mainfrom
dz/on-start
Open

send ServerInfo to CLI host on start#6260
davidzhao wants to merge 2 commits into
mainfrom
dz/on-start

Conversation

@davidzhao

Copy link
Copy Markdown
Member

No description provided.

@davidzhao davidzhao requested a review from a team as a code owner June 27, 2026 16:04
devin-ai-integration[bot]

This comment was marked as resolved.

@chenghao-mou chenghao-mou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Comment on lines +54 to +62
server_info_cls = getattr(agent_dev, "ServerInfo", None)
if server_info_cls is not None:
info = agent_dev.AgentDevMessage(
server_info=server_info_cls(
agent_name=self._worker._agent_name,
url=self._worker._ws_url,
)
)
await _send_proto(writer, info.SerializeToString())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should you just bump the protocol instead?

@theomonnom theomonnom Jun 27, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

proto defaults to None/empty already?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

where do you define protocol version? I didn't see it anywhere

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No I mean, the livekit-protocol package, it's fine to directly access agent_dev.ServerInfo if you bump? Instead of getattr

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