feat : slight fix attempt for frontend

This commit is contained in:
martin legrand
2025-04-21 15:06:21 +02:00
parent 4de527aa42
commit 1b17b95e8c
5 changed files with 29 additions and 17 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ class Agent():
def extract_reasoning_text(self, text: str) -> None:
"""
Extract the reasoning block of a easoning model like deepseek.
Extract the reasoning block of a reasoning model like deepseek.
"""
start_tag = "<think>"
end_tag = "</think>"
+1 -1
View File
@@ -244,7 +244,7 @@ class Browser:
def is_link_valid(self, url:str) -> bool:
"""Check if a URL is a valid link (page, not related to icon or metadata)."""
if len(url) > 64:
if len(url) > 72:
self.logger.warning(f"URL too long: {url}")
return False
parsed_url = urlparse(url)
+5 -3
View File
@@ -23,10 +23,10 @@ class QueryResponse(BaseModel):
success: str
blocks: dict
status: str
timestamp: str
uid: str
def __str__(self):
return f"Done: {self.done}, Answer: {self.answer}, Agent Name: {self.agent_name}, Success: {self.success}, Blocks: {self.blocks}"
return f"Done: {self.done}, Answer: {self.answer}, Agent Name: {self.agent_name}, Success: {self.success}, Blocks: {self.blocks}, Status: {self.status}, UID: {self.uid}"
def jsonify(self):
return {
@@ -34,7 +34,9 @@ class QueryResponse(BaseModel):
"answer": self.answer,
"agent_name": self.agent_name,
"success": self.success,
"blocks": self.blocks
"blocks": self.blocks,
"status": self.status,
"uid": self.uid
}
class executorResult: