fix-cron-scheduled-tasks #1

Merged
tanyar09 merged 11 commits from fix-cron-scheduled-tasks into feature/cleanup-providers-llama-only 2026-03-04 12:04:57 -05:00

11 Commits

Author SHA1 Message Date
9c9c4e3ebf Add security configuration documentation
- Comprehensive security configuration guide for nanobot
- Production deployment security checklist
- Channel access control configuration
- API key and credential management
- Workspace and file system security settings
2026-03-03 13:13:42 -05:00
c46b0a7e37 Add cursor rules for nanobot security guidelines
- Document security restrictions and best practices
- Provide production deployment checklist
- Include tool-specific security rules
- Reference implementation files for security checks
2026-03-03 13:12:30 -05:00
7bff134cb5 Update cron skill documentation
- Add examples for in_seconds parameter usage
- Clarify when to use in_seconds vs at parameter
- Improve time expression examples
2026-03-03 13:11:20 -05:00
63d1edba91 Add Groq provider support and improve Ollama timeout handling
- Add Groq provider config for voice transcription support
- Pass Groq API key to Telegram channel for voice transcription
- Increase Ollama timeout settings (10min read timeout for slow GPU responses)
- Improve timeout handling in custom provider
2026-03-03 13:11:06 -05:00
7933245ec3 Improve agent instructions and documentation
- Clarify when NOT to use message tool (simple acknowledgments, normal conversation)
- Add guidance for natural conversational responses
- Update cron tool documentation with better examples
- Improve scheduled tasks documentation in AGENTS.md
2026-03-03 13:10:59 -05:00
096d76430b Improve agent reliability and error handling
- Add timeout protection (120s) for LLM provider calls
- Skip memory consolidation for CLI mode to avoid blocking
- Add timeout protection for memory consolidation (120s)
- Improve error handling with better logging
- Add parameter type coercion before validation
- Allow None values for optional parameters in validation
- Fix type coercion for memory updates (handle dict responses)
2026-03-03 13:10:53 -05:00
d9919828c5 Fix cron scheduled tasks not executing
- Add auto-start functionality to cron service when jobs are added
  if service is not running and event loop is available
- Add 'reminder' field to CronPayload to distinguish between
  simple reminders (send message directly) and tasks (execute via agent)
- Update cron tool to accept 'reminder' parameter
- Fix callback logic to check reminder field: reminders send directly,
  tasks are processed through agent
- Ensures both 'remind me to X' and 'schedule a task to do X' work correctly
2026-03-03 13:09:44 -05:00
ac334e9cf7 Enhance ReadFileTool for improved file reading capabilities
- Added support for PDF file extraction using pdftotext, with error handling for extraction failures.
- Updated tool description to clarify usage and file type support.
- Improved error messages for binary and non-UTF-8 encoded files.
- Updated ExecTool description to emphasize the importance of using read_file for reading files before executing commands.
2026-02-24 11:28:24 -05:00
d3cb1d0050 Add SETUP_GUIDE.md with improved alias instructions
- Enhanced alias section with clearer options
- Added examples for common nanobot commands
- Improved formatting and organization
2026-02-23 14:37:13 -05:00
02cf7fb4da Add debugging improvements and litellm workaround
- Enhanced logging in agent loop for better debugging
- Added workaround for litellm's os.getcwd() issue when directory is deleted
- Improved tool result logging and iteration tracking
2026-02-23 14:35:59 -05:00
3b0598d689 Improve LLM reliability for data analysis tasks
- Enhanced exec tool description with specific pandas/CSV examples
- Added JSON tool call parsing in custom_provider for Ollama compatibility
- Added timeouts to prevent hanging on slow LLM responses
- Improved guidance for Excel/CSV operations to reduce LLM errors

Changes:
- nanobot/agent/tools/shell.py: Added detailed examples in tool description
- nanobot/providers/custom_provider.py: Added JSON parsing fallback and timeouts
2026-02-23 14:35:21 -05:00