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

Improve command execution and follow ups #1281

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Nov 25, 2024

Improve command execution and follow ups

This pull request includes changes to the agixt/Interactions.py and agixt/extensions/agixt_actions.py files to enhance functionality and improve error handling. The most important changes include adding a new rule for command execution order, modifying parameter types, and adding error handling for the schedule_follow_up method.

Enhancements and error handling:

  • agixt/Interactions.py: Added a rule to ensure all command executions take place before the <answer> block in the format_prompt method.
  • agixt/extensions/agixt_actions.py: Changed the parameter types for days, hours, and minutes from int to str in the schedule_follow_up method.
  • agixt/extensions/agixt_actions.py: Added error handling to convert days, hours, and minutes parameters to integers, with default values set to 0 in case of conversion failure, in the schedule_follow_up method.

@Josh-XT Josh-XT marked this pull request as ready for review November 25, 2024 00:23
@Josh-XT Josh-XT merged commit 9b7d441 into main Nov 25, 2024
4 checks passed
@Josh-XT Josh-XT deleted the improve-command-execution-and-follow-ups branch November 25, 2024 00:23
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.

1 participant