mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 11:05:26 +00:00
fix : message not displayed bug
This commit is contained in:
parent
600bff8da4
commit
7f3682e884
@ -10,7 +10,7 @@ function App() {
|
|||||||
const [currentView, setCurrentView] = useState('blocks');
|
const [currentView, setCurrentView] = useState('blocks');
|
||||||
const [responseData, setResponseData] = useState(null);
|
const [responseData, setResponseData] = useState(null);
|
||||||
const [isOnline, setIsOnline] = useState(false);
|
const [isOnline, setIsOnline] = useState(false);
|
||||||
const [status, setStatus] = useState('No agent working.');
|
const [status, setStatus] = useState('Agents ready');
|
||||||
const messagesEndRef = useRef(null);
|
const messagesEndRef = useRef(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -72,7 +72,7 @@ function App() {
|
|||||||
const res = await axios.get('http://0.0.0.0:8000/latest_answer');
|
const res = await axios.get('http://0.0.0.0:8000/latest_answer');
|
||||||
const data = res.data;
|
const data = res.data;
|
||||||
const answerExists = messages.some(
|
const answerExists = messages.some(
|
||||||
(msg) => msg.timestamp === data.timestamp || data.answer != undefined
|
(msg) => msg.timestamp === data.timestamp || data.answer === undefined
|
||||||
);
|
);
|
||||||
if (!answerExists) {
|
if (!answerExists) {
|
||||||
setMessages((prev) => [
|
setMessages((prev) => [
|
||||||
|
@ -78,7 +78,6 @@ class Agent():
|
|||||||
def get_tools(self) -> dict:
|
def get_tools(self) -> dict:
|
||||||
return self.tools
|
return self.tools
|
||||||
|
|
||||||
@property
|
|
||||||
def get_blocks_result(self) -> list:
|
def get_blocks_result(self) -> list:
|
||||||
return self.blocks_result
|
return self.blocks_result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user