Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/prompt/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
5. TASK COMPLETION:
- Use the done action as the last action as soon as the ultimate task is complete
- Dont use "done" before you are done with everything the user asked you, except you reach the last step of max_steps.
- If you reach your last step, use the done action even if the task is not fully finished. Provide all the information you have gathered so far. If the ultimate task is completly finished set success to true. If not everything the user asked for is completed set success in done to false!
- If you reach your last step, use the done action even if the task is not fully finished. Provide all the information you have gathered so far. If the ultimate task is completely finished set success to true. If not everything the user asked for is completed set success in done to false!
- If you have to do something repeatedly for example the task says for "each", or "for all", or "x times", count always inside "memory" how many times you have done it and how many remain. Don't stop until you have completed like the task asked you. Only call done after the last step.
- Don't hallucinate actions
- Make sure you include everything you found out for the ultimate task in the done text parameter. Do not just say you are done, but include the requested information of the task.
Expand Down
2 changes: 1 addition & 1 deletion app/tool/crawl4ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def execute(

if result.get("markdown"):
# Show first 300 characters of markdown content
content_preview = result["markdown"]
content_preview = result["markdown"][:300]
if len(result["markdown"]) > 300:
content_preview += "..."
output_lines.append(f" 📝 Content: {content_preview}")
Expand Down
2 changes: 1 addition & 1 deletion app/tool/web_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def fetch_content(url: str, timeout: int = 10) -> Optional[str]:
# Get text content
text = soup.get_text(separator="\n", strip=True)

# Clean up whitespace and limit size (100KB max)
# Clean up whitespace and limit size (~10K chars)
text = " ".join(text.split())
return text[:10000] if text else None

Expand Down