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

Inject pending tasks to context #1340

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Dec 23, 2024

This pull request introduces new methods to handle task retrieval for agents and integrates these methods into the interaction formatting process. The most important changes include the addition of new methods in agixt/Agent.py, the integration of task retrieval in agixt/Interactions.py, and the removal of an outdated method in agixt/Task.py.

New Methods for Task Retrieval:

  • agixt/Agent.py: Added get_conversation_tasks method to retrieve tasks related to a specific conversation and format them in markdown.
  • agixt/Agent.py: Added get_all_pending_tasks method to retrieve all pending tasks for an agent.

Integration of Task Retrieval:

  • agixt/Interactions.py: Modified format_prompt to include tasks related to the conversation in the context if available.

Removal of Outdated Method:

  • agixt/Task.py: Removed the get_tasks_by_agent method which was previously used to retrieve tasks for a specific agent.

@Josh-XT Josh-XT marked this pull request as ready for review December 23, 2024 12:21
@Josh-XT Josh-XT merged commit 160e4c6 into main Dec 23, 2024
7 checks passed
@Josh-XT Josh-XT deleted the inject-pending-tasks-to-context branch December 23, 2024 12:21
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