Handle info request with FastAPI
(
*,
sdk: CopilotKitRemoteEndpoint,
context: CopilotKitContext,
as_html: bool = False,
)
| 235 | |
| 236 | |
| 237 | async 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 | |
| 250 | async def handle_execute_action( |
no test coverage detected
searching dependent graphs…