Skip to content

Commit e028829

Browse files
committed
style: add description in docstrings
1 parent 14087fd commit e028829

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pydantic_ai_slim/pydantic_ai/agent/abstract.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ async def to_cli(
11211121
deps: The dependencies to pass to the agent.
11221122
prog_name: The name of the program to use for the CLI. Defaults to 'pydantic-ai'.
11231123
message_history: History of the conversation so far.
1124+
show_tool_calls: Whether to show tool calls in the CLI.
11241125
11251126
Example:
11261127
```python {title="agent_to_cli.py" test="skip"}
@@ -1160,6 +1161,7 @@ def to_cli_sync(
11601161
deps: The dependencies to pass to the agent.
11611162
prog_name: The name of the program to use for the CLI. Defaults to 'pydantic-ai'.
11621163
message_history: History of the conversation so far.
1164+
show_tool_calls: Whether to show tool calls in the CLI.
11631165
11641166
```python {title="agent_to_cli_sync.py" test="skip"}
11651167
from pydantic_ai import Agent
@@ -1170,5 +1172,7 @@ def to_cli_sync(
11701172
```
11711173
"""
11721174
return get_event_loop().run_until_complete(
1173-
self.to_cli(deps=deps, prog_name=prog_name, message_history=message_history, show_tool_calls=show_tool_calls)
1175+
self.to_cli(
1176+
deps=deps, prog_name=prog_name, message_history=message_history, show_tool_calls=show_tool_calls
1177+
)
11741178
)

0 commit comments

Comments
 (0)