Skip to content

feat: add deprecation warning to Agent class#479

Merged
sicoyle merged 2 commits intodapr:mainfrom
Synaptara:feat/deprecate-agent
Mar 6, 2026
Merged

feat: add deprecation warning to Agent class#479
sicoyle merged 2 commits intodapr:mainfrom
Synaptara:feat/deprecate-agent

Conversation

@Synaptara
Copy link
Contributor

Description

This PR adds a DeprecationWarning to the Agent class __init__ method. As requested, it uses the standard Python warnings module to advise users that the class will be removed in a future version and that they should transition to the DurableAgent class instead.

Issue reference

Please reference the issue this PR closes: #473

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Created/updated tests
  • Tested this change against all the quickstarts
  • Extended the documentation

(Note to maintainers: Since this PR only adds a standard code-level DeprecationWarning, I have left the checklist items unchecked. Please let me know if you need me to add a specific test for this warning or update any documentation!)

@Synaptara Synaptara requested review from a team as code owners March 6, 2026 17:38
Signed-off-by: Synaptara Labs <karthick.aidev@gmail.com>
@Synaptara Synaptara force-pushed the feat/deprecate-agent branch from 8c31f6a to 5b2822c Compare March 6, 2026 17:40
Copy link
Collaborator

@sicoyle sicoyle left a comment

Choose a reason for hiding this comment

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

thank you!!

@sicoyle sicoyle merged commit 3ca8472 into dapr:main Mar 6, 2026
8 checks passed
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.

feat: add a deprecation warning on Agent class

2 participants