Skip to content

Commit 49bb015

Browse files
author
Braden Olsen
committed
Adds filtering to list agents request
Adds optional filtering parameters to the ListAgentsRequest. This allows filtering agents by logged-in status and/or agent state, improving the efficiency of agent listing operations.
1 parent 079ae9e commit 49bb015

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tcnapi/exile/gate/v2/public.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,9 +1277,11 @@ message UpdateAgentStatusResponse {}
12771277

12781278
/**
12791279
* Request message for listing agents.
1280-
* Empty message as no parameters are needed.
12811280
*/
1282-
message ListAgentsRequest {}
1281+
message ListAgentsRequest {
1282+
optional bool logged_in = 1; // optional filter to return only logged-in agent
1283+
optional AgentState state = 2; // optional filter to return only agents in the specified state
1284+
}
12831285

12841286
/**
12851287
* Response message for listing agents (streamed).

0 commit comments

Comments
 (0)