-
Notifications
You must be signed in to change notification settings - Fork 43.1k
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
fix(agent): Disable profile generator -> speed up agent setup #7121
fix(agent): Disable profile generator -> speed up agent setup #7121
Conversation
Currently it's specified in an OpenAI-specific format, which might adversely affect performance with other providers.
…ace usages with `agent.state.*` This prevents potential state inconsistency between `agent` and `agent.state` when other values are assigned to `agent.ai_profile` and `agent.directives`
- Replace `generate_agent_for_task` by `create_agent` - Make `ai_profile` parameter on `create_agent` optional (use default `AIProfile` if not passed)
✅ Deploy Preview for auto-gpt-docs canceled.
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (b0e02fa)
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review
Code feedback:
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. Changelog updates: 2024-05-03Added
Changed
Fixed
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Analysis
✨ Usage guide:Using static code analysis capabilities, the
Language that are currently supported: Python, Java, C++, JavaScript, TypeScript. |
…tor-on-agent-creation
CI Failure Feedback(Checks updated until commit a94d019)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7121 +/- ##
==========================================
+ Coverage 39.75% 41.99% +2.24%
==========================================
Files 104 81 -23
Lines 6756 4812 -1944
Branches 1000 668 -332
==========================================
- Hits 2686 2021 -665
+ Misses 3962 2697 -1265
+ Partials 108 94 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
dee2ff8
to
eb6e386
Compare
…tor-on-agent-creation
eb6e386
to
4f30373
Compare
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
…tor-on-agent-creation
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
/describe |
PR Description updated to latest commit (bbefba9)
|
/benchmark |
User description
User description
AIProfile.api_budget
attributeagent.ai_profile
andagent.directives
attributesType
enhancement, bug_fix
Description
create_agent
to handle optional AIProfile, using defaults when not provided.profile_generator.py
for broader use.generate_agent_for_task
withcreate_agent
.SystemComponent
by removing unused directives related to AI profiles.AIProfile
to have default values and removed theapi_budget
attribute.api_budget
fromAIProfile
.Changes walkthrough
7 files
configurators.py
Refactor create_agent to Handle Optional AIProfile
autogpts/autogpt/autogpt/agent_factory/configurators.py
ai_profile
parameter optional increate_agent
function,defaulting to a new
AIProfile
instance if not provided.ai_profile
anddirectives
by creatingdefault instances within the function.
profile_generator.py
Simplify and Generalize Example Call in Profile Generator
autogpts/autogpt/autogpt/agent_factory/profile_generator.py
_example_call
to a more generalizedformat.
agent.py
Streamline Agent Initialization by Removing Specific Profiles
autogpts/autogpt/autogpt/agents/agent.py
ai_profile
anddirectives
from agent initialization, usingsystem-wide defaults instead.
agent_protocol_server.py
Optimize Agent Creation in Protocol Server
autogpts/autogpt/autogpt/app/agent_protocol_server.py
generate_agent_for_task
withcreate_agent
to streamline agentcreation.
main.py
Use Default AI Profiles in Main Application Flow
autogpts/autogpt/autogpt/app/main.py
setup.
profiles.
system.py
Simplify System Component by Removing Unused Directives
autogpts/autogpt/autogpt/commands/system.py
DirectiveProvider
implementation and related methods asai_profile
is no longer used here.ai_profile.py
Update AIProfile with Defaults and Remove Budget
autogpts/autogpt/autogpt/config/ai_profile.py
ai_name
andai_role
inAIProfile
.api_budget
attribute fromAIProfile
.1 files
one_shot.py
Disable Budget Constraint in System Prompt
autogpts/autogpt/autogpt/agents/prompt_strategies/one_shot.py
1 files
test_ai_profile.py
Update AIProfile Unit Tests for Budget Removal
autogpts/autogpt/tests/unit/test_ai_profile.py
api_budget
fromAIProfile
.PR Type
Enhancement, Bug fix
Description
ai_profile
parameter optional increate_agent
function and added default initialization.AgentProfileGeneratorConfiguration
and simplified its structure.ai_profile
anddirectives
attributes fromAgent
class and updatedSystemComponent
initialization.build_system_prompt
.generate_agent_for_task
withcreate_agent
increate_task
and disabled custom AI profile generation.AIProfile
andAIDirectives
inrun_auto_gpt
.AIProfile
and budget constraints fromSystemComponent
.ai_name
andai_role
inAIProfile
and removedapi_budget
attribute.Changes walkthrough 📝
configurators.py
Make `ai_profile` parameter optional in `create_agent`
autogpt/autogpt/agent_factory/configurators.py
ai_profile
parameter optional increate_agent
function.AIProfile
initialization if not provided.profile_generator.py
Generalize example call in `AgentProfileGeneratorConfiguration`
autogpt/autogpt/agent_factory/profile_generator.py
AgentProfileGeneratorConfiguration
._example_call
.agent.py
Remove unused `ai_profile` and `directives` attributes from `Agent`
autogpt/autogpt/agents/agent.py
ai_profile
anddirectives
attributes fromAgent
class.SystemComponent
initialization to remove unused directives.one_shot.py
Disable budget constraint generation in system prompt
autogpt/autogpt/agents/prompt_strategies/one_shot.py
build_system_prompt
.agent_protocol_server.py
Replace
generate_agent_for_task
withcreate_agent
increate_task
autogpt/autogpt/app/agent_protocol_server.py
generate_agent_for_task
withcreate_agent
increate_task
.main.py
Remove task-specific AI profile generation in main application flow
autogpt/autogpt/app/main.py
AIProfile
andAIDirectives
inrun_auto_gpt
.system.py
Remove `AIProfile` and budget constraints from `SystemComponent`
forge/forge/components/system/system.py
AIProfile
and budget constraints fromSystemComponent
.ai_profile.py
Add default values and remove `api_budget` in `AIProfile`
forge/forge/config/ai_profile.py
ai_name
andai_role
inAIProfile
.api_budget
attribute fromAIProfile
.