feat: prompt returns answer to caller + commit on own header line
This commit is contained in:
parent
c5ef006414
commit
996f74b24f
5 changed files with 15 additions and 9 deletions
|
|
@ -564,6 +564,9 @@ pub async fn prompt_user(
|
|||
})
|
||||
.await
|
||||
{
|
||||
Ok(ClientMessage::PromptResponse { answer, .. }) => {
|
||||
(StatusCode::OK, Json(serde_json::json!({ "ok": true, "answer": answer }))).into_response()
|
||||
}
|
||||
Ok(_) => (StatusCode::OK, Json(serde_json::json!({ "ok": true }))).into_response(),
|
||||
Err(e) => e.into_response(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue