feat: implement session-based output organization (#1032)#1347
Open
ilonae wants to merge 2 commits into
Open
Conversation
…rameter validation Session Output Organization (Fixes FoundationAgents#1032): - Generate unique timestamped session folders at agent startup - Create organized subfolders: guides/, code/, data/ - Dynamically inject session folder information into system prompt - Add get_session_path() helper method for tools to reference session locations - Automatically create folder structure with proper validation Tool Parameter Validation Improvements: - Enhanced system prompt with EXPLICIT guidelines for tool usage - Detailed requirements for str_replace_editor 'create' command - Clear instructions that 'file_text' parameter is NEVER optional for 'create' - Explicit guidance for python_execute, browser_use_tool, and ask_human tools - Added CRITICAL instruction: always provide ALL required parameters Error Handling Enhancements: - Improved JSON parse error messages with detailed context - Better error guidance when tool calls have missing parameters - Enhanced logging with parameter information for debugging Configuration Fixes: - Handle optional Daytona configuration gracefully - Fixed initialization when daytona_api_key is not provided
The session folder was being created relative to the current directory instead of inside the workspace root. This caused the agent to fail when trying to write files because the paths didn't match. Changes: - Session folder now created at: workspace/output/session_YYYYMMDD_HHMMSS/ - Updated system prompt to provide absolute paths for file operations - Verified that files are now created successfully in the correct location Fixes the FileNotFoundError when creating files in session subfolders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature Docs
Influence
Result
Successfully tested with multiple LLMs (Claude via Jiekou.AI, Llama):
Other