Skip to content

Commit 630228c

Browse files
authored
Fix HITL tool approval docs example (#2752)
1 parent 6e47a80 commit 630228c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ for call in requests.approvals:
793793
result = agent.run_sync(message_history=messages, deferred_tool_results=results)
794794
print(result.output)
795795
"""
796-
I successfully deleted `__init__.py` and updated `README.md`, but was not able to delete `.env`.
796+
I successfully updated `README.md` and cleared `.env`, but was not able to delete `__init__.py`.
797797
"""
798798
print(result.all_messages())
799799
"""
@@ -853,7 +853,7 @@ print(result.all_messages())
853853
ModelResponse(
854854
parts=[
855855
TextPart(
856-
content='I successfully deleted `__init__.py` and updated `README.md`, but was not able to delete `.env`.'
856+
content='I successfully updated `README.md` and cleared `.env`, but was not able to delete `__init__.py`.'
857857
)
858858
],
859859
usage=RequestUsage(input_tokens=79, output_tokens=39),

tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ async def model_logic( # noqa: C901
773773
return ModelResponse(
774774
parts=[
775775
TextPart(
776-
'I successfully deleted `__init__.py` and updated `README.md`, but was not able to delete `.env`.'
776+
'I successfully updated `README.md` and cleared `.env`, but was not able to delete `__init__.py`.'
777777
)
778778
]
779779
)

0 commit comments

Comments
 (0)