Skip to content

Commit 9aba018

Browse files
Fixing some typos in various texts (#487)
1 parent 5a7076b commit 9aba018

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/strands/agent/conversation_manager/conversation_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def restore_from_session(self, state: dict[str, Any]) -> Optional[list[Message]]
3636
Args:
3737
state: Previous state of the conversation manager
3838
Returns:
39-
Optional list of messages to prepend to the agents messages. By defualt returns None.
39+
Optional list of messages to prepend to the agents messages. By default returns None.
4040
"""
4141
if state.get("__name__") != self.__class__.__name__:
4242
raise ValueError("Invalid conversation manager state.")

src/strands/multiagent/a2a/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
to be used as an executor in the A2A protocol. It handles the execution of agent
55
requests and the conversion of Strands Agent streamed responses to A2A events.
66
7-
The A2A AgentExecutor ensures clients recieve responses for synchronous and
7+
The A2A AgentExecutor ensures clients receive responses for synchronous and
88
streamed requests to the A2AServer.
99
"""
1010

src/strands/session/repository_session_manager.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, session_id: str, session_repository: SessionRepository, **kwa
3232
3333
Args:
3434
session_id: ID to use for the session. A new session with this id will be created if it does
35-
not exist in the reposiory yet
35+
not exist in the repository yet
3636
session_repository: Underlying session repository to use to store the sessions state.
3737
**kwargs: Additional keyword arguments for future extensibility.
3838
@@ -133,15 +133,15 @@ def initialize(self, agent: "Agent", **kwargs: Any) -> None:
133133
agent.state = AgentState(session_agent.state)
134134

135135
# Restore the conversation manager to its previous state, and get the optional prepend messages
136-
prepend_messsages = agent.conversation_manager.restore_from_session(
136+
prepend_messages = agent.conversation_manager.restore_from_session(
137137
session_agent.conversation_manager_state
138138
)
139139

140-
if prepend_messsages is None:
141-
prepend_messsages = []
140+
if prepend_messages is None:
141+
prepend_messages = []
142142

143143
# List the messages currently in the session, using an offset of the messages previously removed
144-
# by the converstaion manager.
144+
# by the conversation manager.
145145
session_messages = self.session_repository.list_messages(
146146
session_id=self.session_id,
147147
agent_id=agent.agent_id,
@@ -150,5 +150,5 @@ def initialize(self, agent: "Agent", **kwargs: Any) -> None:
150150
if len(session_messages) > 0:
151151
self._latest_agent_message[agent.agent_id] = session_messages[-1]
152152

153-
# Resore the agents messages array including the optional prepend messages
154-
agent.messages = prepend_messsages + [session_message.to_message() for session_message in session_messages]
153+
# Restore the agents messages array including the optional prepend messages
154+
agent.messages = prepend_messages + [session_message.to_message() for session_message in session_messages]

src/strands/types/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def from_agent(cls, agent: "Agent") -> "SessionAgent":
125125

126126
@classmethod
127127
def from_dict(cls, env: dict[str, Any]) -> "SessionAgent":
128-
"""Initialize a SessionAgent from a dictionary, ignoring keys that are not calss parameters."""
128+
"""Initialize a SessionAgent from a dictionary, ignoring keys that are not class parameters."""
129129
return cls(**{k: v for k, v in env.items() if k in inspect.signature(cls).parameters})
130130

131131
def to_dict(self) -> dict[str, Any]:
@@ -144,7 +144,7 @@ class Session:
144144

145145
@classmethod
146146
def from_dict(cls, env: dict[str, Any]) -> "Session":
147-
"""Initialize a Session from a dictionary, ignoring keys that are not calss parameters."""
147+
"""Initialize a Session from a dictionary, ignoring keys that are not class parameters."""
148148
return cls(**{k: v for k, v in env.items() if k in inspect.signature(cls).parameters})
149149

150150
def to_dict(self) -> dict[str, Any]:

0 commit comments

Comments
 (0)