@@ -68,11 +68,11 @@ class AgentState:
6868
6969 def __init__ (self , storage : Storage , context_service_key : str ):
7070 """
71- Initializes a new instance of the :class:`AgentState` class.
71+ Initializes a new instance of the :class:`microsoft_agents.hosting.core.state.agent_state. AgentState` class.
7272
7373 :param storage: The storage layer this state management object will use to store and retrieve state
7474 :type storage: :class:`microsoft_agents.hosting.core.storage.Storage`
75- :param context_service_key: The key for the state cache for this :class:`AgentState`
75+ :param context_service_key: The key for the state cache for this :class:`microsoft_agents.hosting.core.state.agent_state. AgentState`
7676 :type context_service_key: str
7777
7878 .. remarks::
@@ -93,19 +93,19 @@ def get_cached_state(self, turn_context: TurnContext) -> CachedAgentState:
9393 from the turn context.
9494
9595 :param turn_context: The context object for this turn.
96- :type turn_context: :class:`TurnContext`
96+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
9797 :return: The cached agent state instance.
9898 """
9999 return turn_context .turn_state .get (self ._context_service_key )
100100
101101 def create_property (self , name : str ) -> StatePropertyAccessor :
102102 """
103- Creates a property definition and registers it with this :class:`AgentState`.
103+ Creates a property definition and registers it with this :class:`microsoft_agents.hosting.core.state.agent_state. AgentState`.
104104
105105 :param name: The name of the property
106106 :type name: str
107107 :return: If successful, the state property accessor created
108- :rtype: :class:`StatePropertyAccessor`
108+ :rtype: :class:`microsoft_agents.hosting.core.state.state_property_accessor. StatePropertyAccessor`
109109 """
110110 if not name or not name .strip ():
111111 raise ValueError (
@@ -123,7 +123,7 @@ async def load(self, turn_context: TurnContext, force: bool = False) -> None:
123123 Reads the current state object and caches it in the context object for this turn.
124124
125125 :param turn_context: The context object for this turn
126- :type turn_context: :class:`TurnContext`
126+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
127127 :param force: Optional, true to bypass the cache
128128 :type force: bool
129129 """
@@ -141,7 +141,7 @@ async def save(self, turn_context: TurnContext, force: bool = False) -> None:
141141 If the state has changed, it saves the state cached in the current context for this turn.
142142
143143 :param turn_context: The context object for this turn
144- :type turn_context: :class:`TurnContext`
144+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
145145 :param force: Optional, true to save state to storage whether or not there are changes
146146 :type force: bool
147147 """
@@ -157,7 +157,7 @@ def clear(self, turn_context: TurnContext):
157157 Clears any state currently stored in this state scope.
158158
159159 :param turn_context: The context object for this turn
160- :type turn_context: :class:`TurnContext`
160+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
161161
162162 :return: None
163163
@@ -174,7 +174,7 @@ async def delete(self, turn_context: TurnContext) -> None:
174174 Deletes any state currently stored in this state scope.
175175
176176 :param turn_context: The context object for this turn
177- :type turn_context: :class:`TurnContext`
177+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
178178
179179 :return: None
180180 """
@@ -200,7 +200,7 @@ def get_value(
200200 Gets the value of the specified property in the turn context.
201201
202202 :param turn_context: The context object for this turn
203- :type turn_context: :class:`TurnContext`
203+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
204204 :param property_name: The property name
205205 :type property_name: str
206206
@@ -235,8 +235,6 @@ def delete_value(self, property_name: str) -> None:
235235 """
236236 Deletes a property from the state cache in the turn context.
237237
238- :param turn_context: The context object for this turn
239- :type turn_context: :class:`TurnContext`
240238 :param property_name: The name of the property to delete
241239 :type property_name: str
242240
@@ -254,8 +252,6 @@ def set_value(self, property_name: str, value: StoreItem) -> None:
254252 """
255253 Sets a property to the specified value in the turn context.
256254
257- :param turn_context: The context object for this turn
258- :type turn_context: :class:`TurnContext`
259255 :param property_name: The property name
260256 :type property_name: str
261257 :param value: The value to assign to the property
@@ -272,15 +268,15 @@ def set_value(self, property_name: str, value: StoreItem) -> None:
272268
273269class BotStatePropertyAccessor (StatePropertyAccessor ):
274270 """
275- Defines methods for accessing a state property created in a :class:`AgentState` object.
271+ Defines methods for accessing a state property created in a :class:`microsoft_agents.hosting.core.state.agent_state. AgentState` object.
276272 """
277273
278274 def __init__ (self , agent_state : AgentState , name : str ):
279275 """
280- Initializes a new instance of the :class:`BotStatePropertyAccessor` class.
276+ Initializes a new instance of the :class:`microsoft_agents.hosting.core.state.agent_state. BotStatePropertyAccessor` class.
281277
282278 :param agent_state: The state object to access
283- :type agent_state: :class:`AgentState`
279+ :type agent_state: :class:`microsoft_agents.hosting.core.state.agent_state. AgentState`
284280 :param name: The name of the state property to access
285281 :type name: str
286282
@@ -304,7 +300,7 @@ async def delete(self, turn_context: TurnContext) -> None:
304300 Deletes the property.
305301
306302 :param turn_context: The context object for this turn
307- :type turn_context: :class:`TurnContext`
303+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
308304 """
309305 await self ._agent_state .load (turn_context , False )
310306 self ._agent_state .delete_value (self ._name )
@@ -320,7 +316,7 @@ async def get(
320316 Gets the property value.
321317
322318 :param turn_context: The context object for this turn
323- :type turn_context: :class:`TurnContext`
319+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
324320 :param default_value_or_factory: Defines the default value for the property
325321 """
326322 await self ._agent_state .load (turn_context , False )
@@ -355,7 +351,7 @@ async def set(self, turn_context: TurnContext, value: StoreItem) -> None:
355351 Sets the property value.
356352
357353 :param turn_context: The context object for this turn
358- :type turn_context: :class:`TurnContext`
354+ :type turn_context: :class:`microsoft_agents.hosting.core.turn_context. TurnContext`
359355
360356 :param value: The value to assign to the property
361357 """
0 commit comments