Skip to content

feat(room_service_client): implement forward participant api #76

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ group :development do
gem 'pry'
gem 'pry-doc'
gem 'yard'
gem 'protoc-gen-twirp_ruby'
end
20 changes: 9 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ GEM
base64 (0.2.0)
coderay (1.1.3)
diff-lcs (1.5.0)
faraday (2.10.1)
faraday-net_http (>= 2.0, < 3.2)
logger
faraday-net_http (3.1.1)
net-http
google-protobuf (3.25.4)
faraday (2.0.0)
ruby2_keywords (>= 0.0.4)
google-protobuf (3.23.4)
google-protobuf (3.23.4-x86_64-linux)
jwt (2.8.2)
base64
logger (1.6.5)
method_source (1.0.0)
net-http (0.4.1)
uri
protoc-gen-twirp_ruby (1.2.0)
google-protobuf
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand All @@ -46,10 +43,10 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
ruby2_keywords (0.0.5)
twirp (1.10.0)
faraday (< 3)
google-protobuf (~> 3.0, >= 3.7.0)
uri (0.13.0)
webrick (1.7.0)
yard (0.9.28)
webrick (~> 1.7.0)
Expand All @@ -60,11 +57,12 @@ PLATFORMS

DEPENDENCIES
livekit-server-sdk!
protoc-gen-twirp_ruby
pry
pry-doc
rake
rspec
yard

BUNDLED WITH
2.3.7
2.4.22
4 changes: 2 additions & 2 deletions lib/livekit/agent_dispatch_service_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
module LiveKit
# Client for LiveKit's Agent Dispatch Service, which manages agent assignments to rooms
# This client handles creating, deleting, and retrieving agent dispatches
class AgentDispatchServiceClient < Twirp::Client
client_for Proto::AgentDispatchServiceService
class AgentDispatchClient < Twirp::Client
client_for Proto::AgentDispatchService
include AuthMixin
attr_accessor :api_key, :api_secret

Expand Down
26 changes: 15 additions & 11 deletions lib/livekit/proto/livekit_agent_dispatch_twirp.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
require 'twirp'
require_relative 'livekit_agent_dispatch_pb.rb'
# frozen_string_literal: true

# Generated by the protoc-gen-twirp_ruby gem v1.2.0. DO NOT EDIT!
# source: livekit_agent_dispatch.proto

require "twirp"
require_relative "livekit_agent_dispatch_pb"

module LiveKit
module Proto
class AgentDispatchServiceService < ::Twirp::Service
package 'livekit'
service 'AgentDispatchService'
rpc :CreateDispatch, CreateAgentDispatchRequest, AgentDispatch, :ruby_method => :create_dispatch
rpc :DeleteDispatch, DeleteAgentDispatchRequest, AgentDispatch, :ruby_method => :delete_dispatch
rpc :ListDispatch, ListAgentDispatchRequest, ListAgentDispatchResponse, :ruby_method => :list_dispatch
class AgentDispatchService < ::Twirp::Service
package "livekit"
service "AgentDispatchService"
rpc :CreateDispatch, CreateAgentDispatchRequest, AgentDispatch, ruby_method: :create_dispatch
rpc :DeleteDispatch, DeleteAgentDispatchRequest, AgentDispatch, ruby_method: :delete_dispatch
rpc :ListDispatch, ListAgentDispatchRequest, ListAgentDispatchResponse, ruby_method: :list_dispatch
end

class AgentDispatchServiceClient < ::Twirp::Client
client_for AgentDispatchServiceService
class AgentDispatchClient < ::Twirp::Client
client_for AgentDispatchService
end
end
end
2 changes: 1 addition & 1 deletion lib/livekit/proto/livekit_agent_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading