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

started work on abstraction layer, wrapped original implementaton #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ppetermann
Copy link
Contributor

DRAFT

Description

This PR bundles the work to abstract the implementations in the planner, which is supposed to allow other/more complex
storage implementations (for example sqliite)

src/auto_gpt_planner_plugin/planner_protocol.py Outdated Show resolved Hide resolved
str: the task id"""
pass

def complete_task(self, task: PlannerTask, name: str = "PlannerGPT"):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to pass name arg ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

essentally this allows a storage implementation to keep multiple instances apart (thats once the name is actually injected, which it isn't yet)

"get_next_task",
"Returns the task you are supposed to work on",
{},
get_current_task
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the right function to call ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, get next task is aliasing get_current_task, just so it is less likely to stumble over making the distinction

@ppetermann ppetermann marked this pull request as ready for review May 24, 2023 19:46
@ppetermann ppetermann requested a review from rihp May 24, 2023 19:46

self.planner = Planner(get_planner(
agent_id=settings.ai_name,
implementation_name="SqlitePlanner" # TODO: make this configurable
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should make this configureable before merge

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