CodeIDE-Dev / src /agent /assistant.js
FrederickSundeep's picture
commit initial 12-12-2025 0001
e3e0a75
raw
history blame contribute delete
301 Bytes
// src/agent/assistant.js
import { api } from "../apiClient";
export async function askAgent(message, history = []) {
const res = await api.post(
"/chat-stream",
{ message, history },
{ responseType: "text" } // backend returns text/plain
);
return res.data; // whole reply text
}