- Fix compilation errors.
This commit is contained in:
parent
793f2a2d4a
commit
076f130b6b
1 changed files with 4 additions and 4 deletions
|
|
@ -19,9 +19,9 @@ pub fn hear_keyword(state: &AppState, user: UserSession, engine: &mut Engine) {
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let session_manager = orchestrator.session_manager.clone();
|
let session_manager = orchestrator.session_manager.clone();
|
||||||
session_manager.lock().await.wait_for_input(session_id, variable_name.clone()).await;
|
session_manager.lock().await.wait_for_input(session_id, variable_name.clone()).await;
|
||||||
});
|
oesn't exist in SessionManage Err(EvalAltResult::ErrorInterrupted("Waiting for user input".into()))
|
||||||
|
|
||||||
Err(EvalAltResult::ErrorInterrupted("Waiting for user input".into()))
|
Err("Waiting for user input".into())
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
@ -43,10 +43,10 @@ pub fn talk_keyword(state: &AppState, user: UserSession, engine: &mut Engine) {
|
||||||
content: message,
|
content: message,
|
||||||
message_type: "text".to_string(),
|
message_type: "text".to_string(),
|
||||||
stream_token: None,
|
stream_token: None,
|
||||||
|
// Since we removed global response_tx, we need to send through the orchestrator's response channels
|
||||||
is_complete: true,
|
is_complete: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Since we removed global response_tx, we need to send through the orchestrator's response channels
|
|
||||||
let orchestrator = state_clone.orchestrator.clone();
|
let orchestrator = state_clone.orchestrator.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if let Some(adapter) = orchestrator.channels.get("basic") {
|
if let Some(adapter) = orchestrator.channels.get("basic") {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue