Protokolle¶
Multi-Protocol-Unterstützung des KEI-Agent SDK.
🔌 Unterstützte Protokolle¶
RPC (Remote Procedure Call)¶
- Synchrone Request-Response-Kommunikation
- HTTP-basiert mit JSON-Payloads
Stream (WebSocket)¶
- Bidirektionale Echtzeit-Kommunikation
- WebSocket-basiert
# Stream-Beispiel
await client.execute_agent_operation(
"monitor_stream",
{"duration": 10},
protocol=ProtocolType.STREAM
)
Bus (Message Bus)¶
- Asynchrone Publish-Subscribe-Kommunikation
- Event-basierte Architektur
MCP (Model Context Protocol)¶
- Tool-Discovery und -Verwendung
- KI-Model-Integration
# MCP-Beispiel
tools = await client.discover_available_tools()
result = await client.use_tool("calculator", expression="2+2")
⚙️ Protokoll-Konfiguration¶
from kei_agent import ProtocolConfig
config = ProtocolConfig(
rpc_enabled=True,
stream_enabled=True,
bus_enabled=True,
mcp_enabled=True,
auto_protocol_selection=True
)
Weitere Informationen: Konzepte | Client-Verwendung