Spaces:
Sleeping
Sleeping
Fix: Renamed discovery card to agent-card.json per official Prompt Opinion docs
Browse files- backend/main.py +7 -5
backend/main.py
CHANGED
|
@@ -130,11 +130,11 @@ async def mcp_invoke(req: Request, x_gemini_key: str = Header(None)):
|
|
| 130 |
}
|
| 131 |
return {"jsonrpc": "2.0", "result": {}, "id": msg_id}
|
| 132 |
|
| 133 |
-
# ββ A2A Standard (
|
| 134 |
|
| 135 |
-
@app.get("/.well-known/
|
| 136 |
-
def
|
| 137 |
-
"""
|
| 138 |
return {
|
| 139 |
"name": "CodeBlue Context",
|
| 140 |
"version": "1.0.0",
|
|
@@ -142,7 +142,9 @@ def get_a2a_card():
|
|
| 142 |
"capabilities": ["clinical_synthesis"],
|
| 143 |
"endpoints": {
|
| 144 |
"invoke": "https://anil988-codeblue-context.hf.space/a2a/invoke"
|
| 145 |
-
}
|
|
|
|
|
|
|
| 146 |
}
|
| 147 |
|
| 148 |
@app.post("/a2a/invoke")
|
|
|
|
| 130 |
}
|
| 131 |
return {"jsonrpc": "2.0", "result": {}, "id": msg_id}
|
| 132 |
|
| 133 |
+
# ββ A2A Standard (Strict Prompt Opinion Compliance) ββββββββββββββββββ
|
| 134 |
|
| 135 |
+
@app.get("/.well-known/agent-card.json")
|
| 136 |
+
def get_agent_card():
|
| 137 |
+
"""Official Prompt Opinion Discovery Card"""
|
| 138 |
return {
|
| 139 |
"name": "CodeBlue Context",
|
| 140 |
"version": "1.0.0",
|
|
|
|
| 142 |
"capabilities": ["clinical_synthesis"],
|
| 143 |
"endpoints": {
|
| 144 |
"invoke": "https://anil988-codeblue-context.hf.space/a2a/invoke"
|
| 145 |
+
},
|
| 146 |
+
"protocols": ["A2A", "MCP"],
|
| 147 |
+
"data_standards": ["FHIR-R4"]
|
| 148 |
}
|
| 149 |
|
| 150 |
@app.post("/a2a/invoke")
|