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

Fix agent mypy error #206

Merged
merged 6 commits into from
Jul 6, 2023
Merged

Fix agent mypy error #206

merged 6 commits into from
Jul 6, 2023

Conversation

lightaime
Copy link
Member

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)

@lightaime
Copy link
Member Author

@Obs01ete This PR also fix all the mypy error with nested agents. WDYT?

@Obs01ete
Copy link
Collaborator

Obs01ete commented Jul 5, 2023

Yeah, this fixes inheritance inconsistencies, that's fine, formally. However it kinda makes no sense architecturally. If you were to apply dependency inversion and cast CriticAgent to ChatAgent or to BaseAgent to abstract away the concrete inplementation, run will not be available any more and the CriticAgent won't be able to fulfil its purpose.

@Obs01ete
Copy link
Collaborator

Obs01ete commented Jul 5, 2023

Secondly, what do you think about this:
#197 (comment)
It is composition (nesting in your terms). So what's wrong with composition?

Copy link
Collaborator

@Obs01ete Obs01ete left a comment

Choose a reason for hiding this comment

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

I think this is a good middle ground to resolve the inheritance inconsistencies.

@Obs01ete Obs01ete merged commit 9592772 into master Jul 6, 2023
8 checks passed
@Obs01ete Obs01ete deleted the fix_task_agent_mypy branch July 6, 2023 21:14
@lightaime lightaime self-assigned this Jul 9, 2023
@lightaime lightaime added the Agent Related to camel agents label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Related to camel agents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants