feat: Fix CLI agent delete functionality & allow importation of file for system prompt - attempt #2 #1607
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.
Please describe the purpose of this pull request.
I should learn how to use git better..
Changes the cli_config.py broke the delete agent functionality. LocalClient.delete_agent() expects an agent id to be provided but code provides the agent name.
Adds code to allow a text file to be used to import the system prompt from memgpt run for use in new agent creation.
How to test
Try to delete an agent without change. LocalClient will respond back with:
LocalClient.delete_agent() got an unexpected keyword argument 'agent_name'
Apply fix and try again.
memgpt run --system-file
Will load the text file during new agent creation.
Have you tested this PR?
Yes, it works.
Related issues or PRs
Please link any related GitHub issues or PRs.
Is your PR over 500 lines of code?
Nope
Additional context
Not really.