GatewayProtocol
Defined in the gateway module.Rust AI Agent SDK Protocol for gateway/control plane implementations. The gateway coordinates communication between clients and agents, manages sessions, and provides health/presence tracking.
Methods
is_running
port
host
start
stop
register_agent
| Name | Type |
|---|---|
agent | Arc<Agent> |
agent_id | Option<String> |
unregister_agent
| Name | Type |
|---|---|
agent_id | &str |
get_agent
| Name | Type |
|---|---|
agent_id | &str |
list_agents
create_session
| Name | Type |
|---|---|
agent_id | &str |
client_id | Option<String> |
session_id | Option<String> |
get_session
| Name | Type |
|---|---|
session_id | &str |
close_session
| Name | Type |
|---|---|
session_id | &str |
list_sessions
| Name | Type |
|---|---|
agent_id | Option<&str> |
emit
| Name | Type |
|---|---|
event | GatewayEvent |
broadcast
| Name | Type |
|---|---|
event | GatewayEvent |
exclude | Option<Vec<String>> |
health
Source
View on GitHub
praisonai/src/gateway/mod.rs at line 0
