Skip to content

Commit

Permalink
add int func hint support for state key
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk committed Jan 16, 2024
1 parent 43dc8f1 commit fd0b307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agentscope/agents/state_agent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
""" State agent module. """
from typing import Any, Callable, Dict
from typing import Any, Callable, Dict, Union
from loguru import logger

from .agent import AgentBase
Expand Down Expand Up @@ -47,7 +47,7 @@ def reply(self, x: dict = None) -> dict:

def register_state(
self,
state: str,
state: Union[int, str],
handler: Callable,
properties: Dict[str, Any] = None,
) -> None:
Expand Down

0 comments on commit fd0b307

Please sign in to comment.