Skip to content

Commit 5b2822c

Browse files
committed
feat: add deprecation warning to Agent class
Signed-off-by: Synaptara Labs <karthick.aidev@gmail.com>
1 parent 96bd682 commit 5b2822c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dapr_agents/agents/standalone.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import logging
66
import signal
77
import uuid
8+
import warnings
89
from typing import Any, Awaitable, Dict, Iterable, List, Optional, Sequence, Union
910

1011
from dapr_agents.agents.base import AgentBase
@@ -78,6 +79,13 @@ def __init__(
7879
execution: Execution dials for the agent run.
7980
agent_metadata: Extra metadata to store in the registry.
8081
"""
82+
warnings.warn(
83+
"The Agent class is deprecated and will be removed in a future version. "
84+
"Please use the DurableAgent class instead.",
85+
DeprecationWarning,
86+
stacklevel=2,
87+
)
88+
8189
super().__init__(
8290
profile=profile,
8391
name=name,

0 commit comments

Comments
 (0)