-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
P2kind/enhancementNew feature or requestNew feature or requeststaleIssue marked as stale by Dapr BotIssue marked as stale by Dapr Bot
Description
Expected Behavior
my actor interface defines below:
from abc import abstractmethod
from dapr.actor import ActorInterface, actormethod
from common_models.agent import ReportGuideAgentResult
class ReportGuideAgentActorInterface(ActorInterface):
@abstractmethod
@actormethod(name="Answer")
async def answer(self, user_input: str) -> ReportGuideAgentResult: ...Actual Behavior
But got a ERR_ACTOR_INVOKE_METHOD error: "ReportGuideAgentResult is not JSON serializable"
I have to change return type into str, and serialize it in my Actor class, and deserialize it in my Client class.
VERSION is 1.15
elena-kolevska
Metadata
Metadata
Assignees
Labels
P2kind/enhancementNew feature or requestNew feature or requeststaleIssue marked as stale by Dapr BotIssue marked as stale by Dapr Bot