pub mod executor; use axum::{extract::State, Json}; use serde_json::json; use std::sync::Arc; use crate::AppState; pub async fn chat_handler( State(state): State>, Json(payload): Json ) -> Json { let _ = state.tx.send(json!({"type": "log", "data": "Agent is thinking..."}).to_string()); Json(json!({"status": "ok"})) }