Skip to content

Commit e28836b

Browse files
use direct import
1 parent 4e2264d commit e28836b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/models/openai.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The grammar can be written as either a regular expression:
184184
```python
185185
from pydantic_ai import Agent
186186
from pydantic_ai.models.openai import OpenAIResponsesModel
187-
from pydantic_ai.tools import FunctionTextFormat
187+
from pydantic_ai import FunctionTextFormat
188188

189189
model = OpenAIResponsesModel('gpt-5') # (1)!
190190
agent = Agent(model)
@@ -203,7 +203,7 @@ Or as a [LARK](https://lark-parser.readthedocs.io/en/latest/how_to_use.html) gra
203203
```python
204204
from pydantic_ai import Agent
205205
from pydantic_ai.models.openai import OpenAIResponsesModel
206-
from pydantic_ai.tools import FunctionTextFormat
206+
from pydantic_ai import FunctionTextFormat
207207

208208
model = OpenAIResponsesModel('gpt-5') # (1)!
209209
agent = Agent(model)
@@ -237,7 +237,7 @@ Freeform function calling, with or without a context free grammar, can be used w
237237
from pydantic_ai import Agent
238238
from pydantic_ai.models.openai import OpenAIResponsesModel
239239
from pydantic_ai.output import ToolOutput
240-
from pydantic_ai.tools import FunctionTextFormat
240+
from pydantic_ai import FunctionTextFormat
241241

242242
sql_grammar_definition = r'''
243243
start: select_stmt

0 commit comments

Comments
 (0)