mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Fix spelling
Merge https://github.com/google/adk-python/pull/2447 This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling) The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/16840838898/attempts/1#summary-47711379253 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/16840839269/attempts/1#summary-47711380479 Note: while I use tooling to identify errors, the tooling doesn't _actually_ provide the corrections, I'm picking them on my own. I'm a human, and I may make mistakes. I've included a couple of changes to make CI happy. Personally, I object to CI being in a state of "random drive by person who adds a blank line in the middle of a file must fix all the preexisting bugs in the file", but that appears to be the state for this repository. COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2447 from jsoref:spelling d85398e7fd154d124d477c6af6181481a01f34e0 PiperOrigin-RevId: 827629615
This commit is contained in:
committed by
Copybara-Service
parent
8dff85099d
commit
aa1233608a
@@ -182,7 +182,7 @@ def test_auto_to_auto_to_single(is_resumable: bool):
|
||||
]
|
||||
|
||||
# sub_agent_1 should still be the current agent. sub_agent_1_1 is single so
|
||||
# it should not be the current agent, otherwise the conversation will be
|
||||
# it should not be the current agent; otherwise, the conversation will be
|
||||
# tied to sub_agent_1_1 forever.
|
||||
assert testing_utils.simplify_events(runner.run('test2')) == [
|
||||
('sub_agent_1', 'response2'),
|
||||
|
||||
@@ -64,13 +64,13 @@ def test_sequential_calls():
|
||||
assert testing_utils.simplify_contents(mockModel.requests[0].contents) == [
|
||||
('user', 'test')
|
||||
]
|
||||
# 3 items: user content, functaion call / response for the 1st call
|
||||
# 3 items: user content, function call / response for the 1st call
|
||||
assert testing_utils.simplify_contents(mockModel.requests[1].contents) == [
|
||||
('user', 'test'),
|
||||
('model', function_call({'x': 1})),
|
||||
('user', function_response({'result': 2})),
|
||||
]
|
||||
# 5 items: user content, functaion call / response for two calls
|
||||
# 5 items: user content, function call / response for two calls
|
||||
assert testing_utils.simplify_contents(mockModel.requests[2].contents) == [
|
||||
('user', 'test'),
|
||||
('model', function_call({'x': 1})),
|
||||
@@ -78,7 +78,7 @@ def test_sequential_calls():
|
||||
('model', function_call({'x': 2})),
|
||||
('user', function_response({'result': 3})),
|
||||
]
|
||||
# 7 items: user content, functaion call / response for three calls
|
||||
# 7 items: user content, function call / response for three calls
|
||||
assert testing_utils.simplify_contents(mockModel.requests[3].contents) == [
|
||||
('user', 'test'),
|
||||
('model', function_call({'x': 1})),
|
||||
|
||||
@@ -32,7 +32,7 @@ def test_simple_function():
|
||||
function_call_1 = types.Part.from_function_call(
|
||||
name='increase_by_one', args={'x': 1}
|
||||
)
|
||||
function_respones_2 = types.Part.from_function_response(
|
||||
function_responses_2 = types.Part.from_function_response(
|
||||
name='increase_by_one', response={'result': 2}
|
||||
)
|
||||
responses: list[types.Content] = [
|
||||
@@ -54,7 +54,7 @@ def test_simple_function():
|
||||
runner = testing_utils.InMemoryRunner(agent)
|
||||
assert testing_utils.simplify_events(runner.run('test')) == [
|
||||
('root_agent', function_call_1),
|
||||
('root_agent', function_respones_2),
|
||||
('root_agent', function_responses_2),
|
||||
('root_agent', 'response1'),
|
||||
]
|
||||
|
||||
@@ -65,7 +65,7 @@ def test_simple_function():
|
||||
assert testing_utils.simplify_contents(mock_model.requests[1].contents) == [
|
||||
('user', 'test'),
|
||||
('model', function_call_1),
|
||||
('user', function_respones_2),
|
||||
('user', function_responses_2),
|
||||
]
|
||||
|
||||
# Asserts the function calls.
|
||||
|
||||
Reference in New Issue
Block a user