Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Prompt Generation Logic and Code Structure for APromptCoder #60

Closed
wants to merge 1 commit into from

Conversation

YadlaMani
Copy link

This update refines the APromptCoder class to improve prompt generation, code maintainability, and context management. Key improvements include:

  • Clearer prompt formatting: The new structure prevents unauthorized function invocations by specifying permissions.
  • Optimized recall logic: Ensures only relevant information is returned from storage.
  • Dynamic context handling: Uses contextWindowRatio to adapt the prompt size based on the model’s context window.
  • Improved documentation: Added detailed docstrings and comments for clarity.
  • Error handling improvements: Ensures fallback behavior when optimized prompt construction fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants