Skip to content

Commit 5959177

Browse files
authored
docs: fix #2335 context page error
1 parent 512b9b6 commit 5959177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Context is an overloaded term. There are two main classes of context you might c
1010
This is represented via the [`RunContextWrapper`][agents.run_context.RunContextWrapper] class and the [`context`][agents.run_context.RunContextWrapper.context] property within it. The way this works is:
1111

1212
1. You create any Python object you want. A common pattern is to use a dataclass or a Pydantic object.
13-
2. You pass that object to the various run methods (e.g. `Runner.run(..., **context=whatever**))`.
13+
2. You pass that object to the various run methods (e.g. `Runner.run(..., context=whatever)`).
1414
3. All your tool calls, lifecycle hooks etc will be passed a wrapper object, `RunContextWrapper[T]`, where `T` represents your context object type which you can access via `wrapper.context`.
1515

1616
The **most important** thing to be aware of: every agent, tool function, lifecycle etc for a given agent run must use the same _type_ of context.

0 commit comments

Comments
 (0)