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

Assistant plugin #22

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Assistant plugin #22

merged 2 commits into from
Sep 11, 2024

Conversation

richiejp
Copy link
Contributor

@richiejp richiejp commented Aug 21, 2024

Experiment with extending Ayup and implementing an agentic style workflow.

The idea is you can specify a seperate source code directory from the app. The
code in this directory is put into a container which has access to the app
source code and other context. Instead of Ayup doing its built in analysis it
runs this other container.

ayup-assistant

#19

Add a second set of files we can optionally push to an assistant
directory.
@richiejp richiejp force-pushed the assistant branch 3 times, most recently from 840b32d to f6f9a6b Compare September 4, 2024 13:54
@richiejp
Copy link
Contributor Author

richiejp commented Sep 5, 2024

Minor issues as I start trying the assistant:

  • Internal error caused by pipreqs failing (I'm not sure trying to separate internal and external errors was a good idea at this stage)
  • Running the assistant gets cached, but it is likely to make remote calls
  • Sometimes log output from Python errors gets butchered

@richiejp richiejp force-pushed the assistant branch 2 times, most recently from 4afbdee to 7fe6844 Compare September 6, 2024 09:30
@richiejp
Copy link
Contributor Author

richiejp commented Sep 9, 2024

  • logging is inconsistent and we risk calling send from multiple threads
  • we don't structure the logs very well

@richiejp
Copy link
Contributor Author

richiejp commented Sep 9, 2024

  • no wrapping of long log lines
  • assistants need a storage area for their sessions

The user can specify an assistant directory with some python code in which is
called in a container with the app directory mounted.

This assistant script can generate or modify code in the app directory
before it is further analysed and ran. Files created or modified by
the assistants are uploaded back to the source directory.

Logs produced by the app are also saved and mounted in the assistant container.
@richiejp
Copy link
Contributor Author

Merging this, but it'll soon be replaced by something like: #19 (comment)

@richiejp richiejp merged commit a7c2249 into premAI-io:main Sep 11, 2024
8 checks passed
@richiejp richiejp deleted the assistant branch October 3, 2024 07:50
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