Package io.livekit.server
Class AgentDispatchServiceClient
-
- All Implemented Interfaces:
public final class AgentDispatchServiceClientA client for explicit agent dispatch.
See: Dispatching agents
-
-
Constructor Summary
Constructors Constructor Description AgentDispatchServiceClient(AgentDispatchService service, String apiKey, String secret)
-
Method Summary
Modifier and Type Method Description final Call<<Error class: unknown class>>createDispatch(String room, String agentName, String metadata)Creates an agent dispatch in a room. final Call<<Error class: unknown class>>createDispatch(String room, String agentName)Creates an agent dispatch in a room. final Call<<Error class: unknown class>>deleteDispatch(String room, String dispatchId)Deletes an agent dispatch from a room. final Call<List<<Error class: unknown class>>>listDispatch(String room)List all agent dispatches in a room. final static AgentDispatchServiceClientcreateClient(String host, String apiKey, String secret, Supplier<OkHttpClient> okHttpSupplier)Create a new AgentDispatchServiceClient with the given host, api key, and secret. final static AgentDispatchServiceClientcreateClient(String host, String apiKey, String secret)Create a new AgentDispatchServiceClient with the given host, api key, and secret. -
-
Constructor Detail
-
AgentDispatchServiceClient
AgentDispatchServiceClient(AgentDispatchService service, String apiKey, String secret)
-
-
Method Detail
-
createDispatch
@JvmOverloads() final Call<<Error class: unknown class>> createDispatch(String room, String agentName, String metadata)
Creates an agent dispatch in a room.
- Parameters:
room- Name of the room to create dispatch inagentName- Name of the agent to dispatchmetadata- Optional metadata to attach to the dispatch- Returns:
Created agent dispatch
-
createDispatch
@JvmOverloads() final Call<<Error class: unknown class>> createDispatch(String room, String agentName)
Creates an agent dispatch in a room.
- Parameters:
room- Name of the room to create dispatch inagentName- Name of the agent to dispatch- Returns:
Created agent dispatch
-
deleteDispatch
final Call<<Error class: unknown class>> deleteDispatch(String room, String dispatchId)
Deletes an agent dispatch from a room.
- Parameters:
room- Name of the room to delete dispatch fromdispatchId- ID of the dispatch to delete- Returns:
Deleted agent dispatch
-
listDispatch
final Call<List<<Error class: unknown class>>> listDispatch(String room)
List all agent dispatches in a room.
- Parameters:
room- Name of the room to list dispatches from- Returns:
List of agent dispatches
-
createClient
@JvmOverloads() final static AgentDispatchServiceClient createClient(String host, String apiKey, String secret, Supplier<OkHttpClient> okHttpSupplier)
Create a new AgentDispatchServiceClient with the given host, api key, and secret.
- Parameters:
okHttpSupplier- provide an OkHttpFactory if you wish to customize the http client (e.g.
-
createClient
@JvmOverloads() final static AgentDispatchServiceClient createClient(String host, String apiKey, String secret)
Create a new AgentDispatchServiceClient with the given host, api key, and secret.
-
-
-
-