Skip to content

Commit a28ec53

Browse files
notrudyyyDouweM
andauthored
Fix grammar issues in docs/dependencies.md (#3421)
Co-authored-by: Douwe Maan <douwe@pydantic.dev>
1 parent be99f5e commit a28ec53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/dependencies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pydantic AI uses a dependency injection system to provide data and services to your agent's [system prompts](agents.md#system-prompts), [tools](tools.md) and [output validators](output.md#output-validator-functions).
44

5-
Matching Pydantic AI's design philosophy, our dependency system tries to use existing best practice in Python development rather than inventing esoteric "magic", this should make dependencies type-safe, understandable easier to test and ultimately easier to deploy in production.
5+
Matching Pydantic AI's design philosophy, our dependency system tries to use existing best practice in Python development rather than inventing esoteric "magic", this should make dependencies type-safe, understandable, easier to test, and ultimately easier to deploy in production.
66

77
## Defining Dependencies
88

@@ -103,11 +103,11 @@ _(This example is complete, it can be run "as is" — you'll need to add `asynci
103103
[System prompt functions](agents.md#system-prompts), [function tools](tools.md) and [output validators](output.md#output-validator-functions) are all run in the async context of an agent run.
104104

105105
If these functions are not coroutines (e.g. `async def`) they are called with
106-
[`run_in_executor`][asyncio.loop.run_in_executor] in a thread pool, it's therefore marginally preferable
106+
[`run_in_executor`][asyncio.loop.run_in_executor] in a thread pool. It's therefore marginally preferable
107107
to use `async` methods where dependencies perform IO, although synchronous dependencies should work fine too.
108108

109109
!!! note "`run` vs. `run_sync` and Asynchronous vs. Synchronous dependencies"
110-
Whether you use synchronous or asynchronous dependencies, is completely independent of whether you use `run` or `run_sync``run_sync` is just a wrapper around `run` and agents are always run in an async context.
110+
Whether you use synchronous or asynchronous dependencies is completely independent of whether you use `run` or `run_sync``run_sync` is just a wrapper around `run` and agents are always run in an async context.
111111

112112
Here's the same example as above, but with a synchronous dependency:
113113

0 commit comments

Comments
 (0)