MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / handle_info

Function handle_info

sdk-python/copilotkit/integrations/fastapi.py:237–247  ·  view source on GitHub ↗

Handle info request with FastAPI

(
    *,
    sdk: CopilotKitRemoteEndpoint,
    context: CopilotKitContext,
    as_html: bool = False,
)

Source from the content-addressed store, hash-verified

235
236
237async def handle_info(
238 *,
239 sdk: CopilotKitRemoteEndpoint,
240 context: CopilotKitContext,
241 as_html: bool = False,
242):
243 """Handle info request with FastAPI"""
244 result = sdk.info(context=context)
245 if as_html:
246 return HTMLResponse(content=generate_info_html(result))
247 return JSONResponse(content=jsonable_encoder(result))
248
249
250async def handle_execute_action(

Callers 2

handlerFunction · 0.85
handler_v1Function · 0.85

Calls 2

generate_info_htmlFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…