update code to use new json based system prompt for routing (#493)

This commit is contained in:
Adil Hafeez 2025-05-30 17:40:46 -07:00 committed by GitHub
parent 8d12a9a6e0
commit 0d190a6e5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 433 additions and 283 deletions

View file

@ -237,9 +237,7 @@ impl HttpContext for StreamContext {
Duration::from_secs(5),
);
if let Some(content) =
self.user_prompt.as_ref().unwrap().content.as_ref()
{
if let Some(content) = self.user_prompt.as_ref().unwrap().content.as_ref() {
let call_context = StreamCallContext {
response_handler_type: ResponseHandlerType::ArchFC,
user_message: Some(content.to_string()),
@ -262,7 +260,6 @@ impl HttpContext for StreamContext {
);
}
Action::Pause
}
fn on_http_response_headers(&mut self, _num_headers: usize, _end_of_stream: bool) -> Action {