aicc-py 0.1.0: initial SDK
- protocol.py: pydantic models for all AICC message types (envelope, session_init, tool_call, tool_result, event, error, heartbeat) - bridge.py: Bridge with @bridge.tool registration, capability checks, session management, serve_forever - client.py: AICCClient with single background reader (safe on concurrent transports like WebSocket), call_tool, events, manifest - tool.py: @tool decorator with schema generation from type hints - schema.py: JSON Schema generation (str/int/float/bool, list, dict, Optional, pydantic models) - transport: Transport protocol, InProcessTransport, WebSocket client+server - tests: 12 passing (integration, schema, websocket roundtrip) - examples: bridge_minimal.py + agent_minimal.py (verified end-to-end)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""Transport implementations for AICC."""
|
||||
|
||||
from aicc.transport.base import Transport
|
||||
from aicc.transport.in_process import InProcessTransport
|
||||
|
||||
__all__ = ["Transport", "InProcessTransport"]
|
||||
|
||||
try: # pragma: no cover
|
||||
from aicc.transport.websocket import WebSocketClientTransport, WebSocketServer
|
||||
|
||||
__all__ += ["WebSocketClientTransport", "WebSocketServer"]
|
||||
except ImportError: # websockets not installed
|
||||
pass
|
||||
Reference in New Issue
Block a user