Skip to content

Commit 486b4e8

Browse files
authored
[docs] fix annotation numbering in context management (#293)
Fix inconsistent numbering between code and explanatory annotations in the context management documentation.
2 parents 136e2b4 + d56047b commit 486b4e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/context.md

+3-3
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)