Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d56047b

Browse files
committed
fix annotation numbering in context management
Fix inconsistent numbering between code and explanatory annotations in the context management documentation.
1 parent 211ffb2 commit d56047b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/context.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ async def fetch_user_age(wrapper: RunContextWrapper[UserInfo]) -> str: # (2)!
4141
return f"User {wrapper.context.name} is 47 years old"
4242

4343
async def main():
44-
user_info = UserInfo(name="John", uid=123) # (3)!
44+
user_info = UserInfo(name="John", uid=123)
4545

46-
agent = Agent[UserInfo]( # (4)!
46+
agent = Agent[UserInfo]( # (3)!
4747
name="Assistant",
4848
tools=[fetch_user_age],
4949
)
5050

51-
result = await Runner.run(
51+
result = await Runner.run( # (4)!
5252
starting_agent=agent,
5353
input="What is the age of the user?",
5454
context=user_info,

0 commit comments

Comments
 (0)