From 053ceef7f2c25c006bd61290604a9a67db0bee95 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sat, 14 Nov 2026 18:48:08 -0800 Subject: [PATCH 1/2] chore(protocol): bump livekit-protocol/protocol to 4245c8d Adds the token mode fields of the agent dev channel (livekit/protocol#1984). Co-Authored-By: Claude Fable 5.2 --- .../bump-protocol-agent-dev-token-mode.md | 5 ++++ .../livekit/protocol/agent_pb/agent_dev.py | 28 +++++++++++-------- .../livekit/protocol/agent_pb/agent_dev.pyi | 22 ++++++++++++--- livekit-protocol/protocol | 2 +- 4 files changed, 40 insertions(+), 17 deletions(-) create mode 100644 .changeset/bump-protocol-agent-dev-token-mode.md diff --git a/.changeset/bump-protocol-agent-dev-token-mode.md b/.changeset/bump-protocol-agent-dev-token-mode.md new file mode 100644 index 000000000..e02f9d688 --- /dev/null +++ b/.changeset/bump-protocol-agent-dev-token-mode.md @@ -0,0 +1,5 @@ +--- +"livekit-protocol": patch +--- + +Update the protocol to add the token mode fields of the agent dev channel: `Credentials` and `ServerInfo.supports_token_mode`. diff --git a/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py b/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py index dfd951df7..6bb5463f6 100644 --- a/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py +++ b/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: agent/livekit_agent_dev.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 29, - 3, + 0, '', 'agent/livekit_agent_dev.proto' ) @@ -25,7 +25,7 @@ from ..logger_pb import options as logger_dot_options__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x61gent/livekit_agent_dev.proto\x12\rlivekit.agent\x1a\x14logger/options.proto\"\xee\x01\n\x0f\x41gentDevMessage\x12M\n\x18get_running_jobs_request\x18\x01 \x01(\x0b\x32).livekit.agent.GetRunningAgentJobsRequestH\x00\x12O\n\x19get_running_jobs_response\x18\x02 \x01(\x0b\x32*.livekit.agent.GetRunningAgentJobsResponseH\x00\x12\x30\n\x0bserver_info\x18\x03 \x01(\x0b\x32\x19.livekit.agent.ServerInfoH\x00\x42\t\n\x07message\"-\n\nServerInfo\x12\x12\n\nagent_name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x1c\n\x1aGetRunningAgentJobsRequest\"O\n\x1bGetRunningAgentJobsResponse\x12\x30\n\x04jobs\x18\x01 \x03(\x0b\x32\".livekit.agent.RunningAgentJobInfo\"\xaf\x01\n\x13RunningAgentJobInfo\x12\x0b\n\x03job\x18\x01 \x01(\x0c\x12\x13\n\x0b\x61\x63\x63\x65pt_name\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65pt_identity\x18\x03 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65pt_metadata\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x12\n\x05token\x18\x06 \x01(\tB\x03\xc0P\x02\x12\x11\n\tworker_id\x18\x07 \x01(\t\x12\x10\n\x08mock_job\x18\x08 \x01(\x08\x42+Z)github.com/livekit/protocol/livekit/agentb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x61gent/livekit_agent_dev.proto\x12\rlivekit.agent\x1a\x14logger/options.proto\"\xa1\x02\n\x0f\x41gentDevMessage\x12M\n\x18get_running_jobs_request\x18\x01 \x01(\x0b\x32).livekit.agent.GetRunningAgentJobsRequestH\x00\x12O\n\x19get_running_jobs_response\x18\x02 \x01(\x0b\x32*.livekit.agent.GetRunningAgentJobsResponseH\x00\x12\x30\n\x0bserver_info\x18\x03 \x01(\x0b\x32\x19.livekit.agent.ServerInfoH\x00\x12\x31\n\x0b\x63redentials\x18\x04 \x01(\x0b\x32\x1a.livekit.agent.CredentialsH\x00\x42\t\n\x07message\"J\n\nServerInfo\x12\x12\n\nagent_name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x1b\n\x13supports_token_mode\x18\x03 \x01(\x08\"B\n\x0b\x43redentials\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x12\n\x05token\x18\x02 \x01(\tB\x03\xc0P\x02\x12\x12\n\nexpires_at\x18\x03 \x01(\x03\"\x1c\n\x1aGetRunningAgentJobsRequest\"O\n\x1bGetRunningAgentJobsResponse\x12\x30\n\x04jobs\x18\x01 \x03(\x0b\x32\".livekit.agent.RunningAgentJobInfo\"\xaf\x01\n\x13RunningAgentJobInfo\x12\x0b\n\x03job\x18\x01 \x01(\x0c\x12\x13\n\x0b\x61\x63\x63\x65pt_name\x18\x02 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65pt_identity\x18\x03 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65pt_metadata\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x12\n\x05token\x18\x06 \x01(\tB\x03\xc0P\x02\x12\x11\n\tworker_id\x18\x07 \x01(\t\x12\x10\n\x08mock_job\x18\x08 \x01(\x08\x42+Z)github.com/livekit/protocol/livekit/agentb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,16 +33,20 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z)github.com/livekit/protocol/livekit/agent' + _globals['_CREDENTIALS'].fields_by_name['token']._loaded_options = None + _globals['_CREDENTIALS'].fields_by_name['token']._serialized_options = b'\300P\002' _globals['_RUNNINGAGENTJOBINFO'].fields_by_name['token']._loaded_options = None _globals['_RUNNINGAGENTJOBINFO'].fields_by_name['token']._serialized_options = b'\300P\002' _globals['_AGENTDEVMESSAGE']._serialized_start=71 - _globals['_AGENTDEVMESSAGE']._serialized_end=309 - _globals['_SERVERINFO']._serialized_start=311 - _globals['_SERVERINFO']._serialized_end=356 - _globals['_GETRUNNINGAGENTJOBSREQUEST']._serialized_start=358 - _globals['_GETRUNNINGAGENTJOBSREQUEST']._serialized_end=386 - _globals['_GETRUNNINGAGENTJOBSRESPONSE']._serialized_start=388 - _globals['_GETRUNNINGAGENTJOBSRESPONSE']._serialized_end=467 - _globals['_RUNNINGAGENTJOBINFO']._serialized_start=470 - _globals['_RUNNINGAGENTJOBINFO']._serialized_end=645 + _globals['_AGENTDEVMESSAGE']._serialized_end=360 + _globals['_SERVERINFO']._serialized_start=362 + _globals['_SERVERINFO']._serialized_end=436 + _globals['_CREDENTIALS']._serialized_start=438 + _globals['_CREDENTIALS']._serialized_end=504 + _globals['_GETRUNNINGAGENTJOBSREQUEST']._serialized_start=506 + _globals['_GETRUNNINGAGENTJOBSREQUEST']._serialized_end=534 + _globals['_GETRUNNINGAGENTJOBSRESPONSE']._serialized_start=536 + _globals['_GETRUNNINGAGENTJOBSRESPONSE']._serialized_end=615 + _globals['_RUNNINGAGENTJOBINFO']._serialized_start=618 + _globals['_RUNNINGAGENTJOBINFO']._serialized_end=793 # @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/agent_pb/agent_dev.pyi b/livekit-protocol/livekit/protocol/agent_pb/agent_dev.pyi index 68164ba72..262f4c3c5 100644 --- a/livekit-protocol/livekit/protocol/agent_pb/agent_dev.pyi +++ b/livekit-protocol/livekit/protocol/agent_pb/agent_dev.pyi @@ -7,22 +7,36 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map DESCRIPTOR: _descriptor.FileDescriptor class AgentDevMessage(_message.Message): - __slots__ = ("get_running_jobs_request", "get_running_jobs_response", "server_info") + __slots__ = ("get_running_jobs_request", "get_running_jobs_response", "server_info", "credentials") GET_RUNNING_JOBS_REQUEST_FIELD_NUMBER: _ClassVar[int] GET_RUNNING_JOBS_RESPONSE_FIELD_NUMBER: _ClassVar[int] SERVER_INFO_FIELD_NUMBER: _ClassVar[int] + CREDENTIALS_FIELD_NUMBER: _ClassVar[int] get_running_jobs_request: GetRunningAgentJobsRequest get_running_jobs_response: GetRunningAgentJobsResponse server_info: ServerInfo - def __init__(self, get_running_jobs_request: _Optional[_Union[GetRunningAgentJobsRequest, _Mapping]] = ..., get_running_jobs_response: _Optional[_Union[GetRunningAgentJobsResponse, _Mapping]] = ..., server_info: _Optional[_Union[ServerInfo, _Mapping]] = ...) -> None: ... + credentials: Credentials + def __init__(self, get_running_jobs_request: _Optional[_Union[GetRunningAgentJobsRequest, _Mapping]] = ..., get_running_jobs_response: _Optional[_Union[GetRunningAgentJobsResponse, _Mapping]] = ..., server_info: _Optional[_Union[ServerInfo, _Mapping]] = ..., credentials: _Optional[_Union[Credentials, _Mapping]] = ...) -> None: ... class ServerInfo(_message.Message): - __slots__ = ("agent_name", "url") + __slots__ = ("agent_name", "url", "supports_token_mode") AGENT_NAME_FIELD_NUMBER: _ClassVar[int] URL_FIELD_NUMBER: _ClassVar[int] + SUPPORTS_TOKEN_MODE_FIELD_NUMBER: _ClassVar[int] agent_name: str url: str - def __init__(self, agent_name: _Optional[str] = ..., url: _Optional[str] = ...) -> None: ... + supports_token_mode: bool + def __init__(self, agent_name: _Optional[str] = ..., url: _Optional[str] = ..., supports_token_mode: bool = ...) -> None: ... + +class Credentials(_message.Message): + __slots__ = ("url", "token", "expires_at") + URL_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + url: str + token: str + expires_at: int + def __init__(self, url: _Optional[str] = ..., token: _Optional[str] = ..., expires_at: _Optional[int] = ...) -> None: ... class GetRunningAgentJobsRequest(_message.Message): __slots__ = () diff --git a/livekit-protocol/protocol b/livekit-protocol/protocol index b1e0d8c7a..4245c8d68 160000 --- a/livekit-protocol/protocol +++ b/livekit-protocol/protocol @@ -1 +1 @@ -Subproject commit b1e0d8c7ac8dfe5b0a284c882f62a125dcbaa13c +Subproject commit 4245c8d68588bcda74c3ec6025a85cc639575688 From e06f09ad1f8eee82def6eb7da105b8d1c2a28130 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 02:48:35 +0000 Subject: [PATCH 2/2] generated protobuf --- livekit-protocol/livekit/protocol/agent_pb/agent_dev.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py b/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py index 6bb5463f6..10cf8d537 100644 --- a/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py +++ b/livekit-protocol/livekit/protocol/agent_pb/agent_dev.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: agent/livekit_agent_dev.proto -# Protobuf Python Version: 5.29.0 +# Protobuf Python Version: 5.29.3 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 29, - 0, + 3, '', 'agent/livekit_agent_dev.proto' )