**Add new test script, agent modifications, and SearXNG integration updates**

This commit is contained in:
geoffsee
2025-05-27 19:10:33 -04:00
parent bb99e652f9
commit 29f70146d2
24 changed files with 2538 additions and 38 deletions

View File

@@ -1,6 +1,5 @@
use tokio::process::Child;
use tracing;
use crate::utils::utils::run_agent;
pub async fn agent(stream_id: &str, input: &str) -> Result<Child, String> {

View File

@@ -86,7 +86,7 @@ pub async fn use_agent(Path(agent_id): Path<String>) -> impl IntoResponse {
let input = serde_json::to_string(&info.payload.input).unwrap_or_default();
tracing::debug!(
"Processing webhook - Resource: {}, Stream ID: {}",
"Executing agent - Type: {}, Id: {}",
resource,
agent_id
);
@@ -228,7 +228,7 @@ pub async fn create_agent(Json(payload): Json<WebhookPostRequest>) -> impl IntoR
// Verify the write by attempting to read it back
match db.get(&stream_id) {
Ok(Some(_)) => {
let stream_url = format!("/webhooks/{}", stream_id);
let stream_url = format!("/agents/{}", stream_id);
tracing::info!(
"Successfully created and verified stream URL: {}",
stream_url