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

AutoGPT: use config and LLM provider from core #5286

Merged
merged 10 commits into from
Sep 21, 2023
Merged

Conversation

Pwuts
Copy link
Member

@Pwuts Pwuts commented Sep 21, 2023

Background

Changes 🏗️

  • Add .flake8 at root of repo
  • Adjustments and fixes to tests where needed. Some are still broken.

autogpt.core

  • Extract core.prompting module out of core.planning
  • Improve model_providers typing and tooling
  • Make .schema model names less pedantic
    • Rename LanguageModel* objects to ChatModel* or CompletionModel* where appropriate
    • Add JSONSchema utility class in core.utils
    • Use JSONSchema instead of untyped dicts for Ability and CompletionModelFunction parameter specification
    • Add token counting methods to ModelProvider interface and implementations

autogpt

  • Convert dataclasses to Pydantic models
  • Deprecate and remove MessageHistory
  • Replace autogpt.llm.* with LLM infrastructure of autogpt.core
    • Removed autogpt.llm.base and autogpt.llm.utils
    • core does things async, so Agent.think() and Agent.execute() are now also async
  • Rtarted replacing monolithic Config by .core.configuration

PR Quality Scorecard ✨

  • Have you used the PR description template?   +2 pts

  • Is your pull request atomic, focusing on a single change?   +5 pts
    Yes atomic, like a bomb (thanks @BillSchumacher)

  • Have you linked the GitHub issue(s) that this PR addresses?   +5 pts

  • Have you documented your changes clearly and comprehensively?   +5 pts

  • Have you changed or added a feature?   -4 pts

    • Have you added/updated corresponding documentation?   +4 pts
    • Have you added/updated corresponding integration tests?   +5 pts
  • Have you changed the behavior of Auto-GPT?   -5 pts

    • Have you also run agbenchmark to verify that these changes do not regress performance?   +10 pts

Pwuts and others added 7 commits September 18, 2023 00:05
* Make .schema model names less pedantic

* Rename LanguageModel* objects to ChatModel* or CompletionModel* where appropriate

* Add `JSONSchema` utility class in `core.utils`

* Use `JSONSchema` instead of untyped dicts for `Ability` and `CompletionModelFunction` parameter specification

* Add token counting methods to `ModelProvider` interface and implementations
…core`;

* Removed `autogpt.llm.base` and `autogpt.llm.utils`
* `core` does things async, so `Agent.think()` and `Agent.execute()` are now also async
* Renamed `dump()` and `parse()` on `JSONSchema` to `to_dict()` and `from_dict()`
* Removed `MessageHistory`

* Also, some typo's and linting fixes here and there
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@netlify
Copy link

netlify bot commented Sep 21, 2023

Deploy Preview for auto-gpt-docs ready!

Name Link
🔨 Latest commit c773815
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/650c5ca9103e68000887952d
😎 Deploy Preview https://deploy-preview-5286--auto-gpt-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Pwuts Pwuts added re-arch code quality ⬆️ PRs that improve code quality labels Sep 21, 2023
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@Pwuts Pwuts requested a review from a team as a code owner September 21, 2023 15:07
@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@github-actions
Copy link
Contributor

This PR exceeds the recommended size of 500 lines. Please make sure you are NOT addressing multiple issues with one PR.

@Pwuts Pwuts merged commit de527d3 into master Sep 21, 2023
14 of 17 checks passed
@Pwuts Pwuts deleted the autogpt/integrate-re-arch branch September 21, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality ⬆️ PRs that improve code quality re-arch size/xl
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

1 participant