| # agent_protocols.py | |
| AGENT_HANDSHAKE_SPEC = { | |
| "universal_input": { | |
| "session_id": "string_required", | |
| "user_input": "string_required", | |
| "context": "object_required", | |
| "task_parameters": "object_optional" | |
| }, | |
| "universal_output": { | |
| "result": "object_required", | |
| "confidence": "float_required", | |
| "processing_time": "integer_required", | |
| "metadata": "object_optional", | |
| "errors": "array_optional" | |
| }, | |
| "error_handling": { | |
| "timeout": 30, # seconds | |
| "retry_attempts": 2, | |
| "degraded_mode": "basic_response" | |
| } | |
| } | |