(
request: Request,
data: MessageCreateRequest,
path_params: Dict = Depends(path_params_required),
auth_info: Dict = Depends(auth_info_required),
)
| 100 | responses={422: {"description": "Unprocessable Entity"}}, |
| 101 | ) |
| 102 | async def api_create( |
| 103 | request: Request, |
| 104 | data: MessageCreateRequest, |
| 105 | path_params: Dict = Depends(path_params_required), |
| 106 | auth_info: Dict = Depends(auth_info_required), |
| 107 | ): |
| 108 | check_path_params( |
| 109 | model_operator=ops, |
| 110 | object_id_required=False, |
| 111 | path_params=path_params, |
| 112 | ) |
| 113 | |
| 114 | entity = await ops.create( |
| 115 | create_dict=data.model_dump(), |
| 116 | **path_params, |
| 117 | ) |
| 118 | return MessageCreateResponse( |
| 119 | data=entity.to_response_dict(), |
| 120 | ) |
| 121 | |
| 122 | @router.post( |
| 123 | path="/assistants/{assistant_id}/chats/{chat_id}/messages/{message_id}", |
nothing calls this directly
no test coverage detected