anil988 commited on
Commit
21292e2
Β·
1 Parent(s): cf9223c

Fix: Renamed discovery card to agent-card.json per official Prompt Opinion docs

Browse files
Files changed (1) hide show
  1. 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 (Hardened for Cross-Platform Discovery) ──────────────────
134
 
135
- @app.get("/.well-known/a2a-card.json")
136
- def get_a2a_card():
137
- """Discovery card with Absolute URLs"""
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")