Skip to content

Commit 30391ad

Browse files
authored
Python: AzureAI Agent int test update to pass (#12849)
### Motivation and Context The AzureAI Agent code interpreter is failing when asking it to use the code interpreter to create bar charts. Updating the unit test so that it uses the code interpreter and doesn't fail/block. <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> ### Description Update integration test while trying to understand the root cause of the failure. <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [X] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄
1 parent 59b4e8a commit 30391ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/tests/integration/agents/azureai_agent/test_azureai_agent_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async def test_invoke_stream_with_thread(self, azureai_agent: AzureAIAgent, agen
160160
async def test_code_interpreter_get_response(self, azureai_agent: AzureAIAgent, agent_test_base: AgentTestBase):
161161
"""Test code interpreter."""
162162
input_text = """
163-
Create a bar chart for the following data:
163+
Using Python, sum the number of animals for the following data:
164164
Panda 5
165165
Tiger 8
166166
Lion 3
@@ -176,7 +176,7 @@ async def test_code_interpreter_get_response(self, azureai_agent: AzureAIAgent,
176176
async def test_code_interpreter_invoke(self, azureai_agent: AzureAIAgent, agent_test_base: AgentTestBase):
177177
"""Test code interpreter."""
178178
input_text = """
179-
Create a bar chart for the following data:
179+
Using Python, sum the number of animals for the following data:
180180
Panda 5
181181
Tiger 8
182182
Lion 3
@@ -194,7 +194,7 @@ async def test_code_interpreter_invoke(self, azureai_agent: AzureAIAgent, agent_
194194
async def test_code_interpreter_invoke_stream(self, azureai_agent: AzureAIAgent, agent_test_base: AgentTestBase):
195195
"""Test code interpreter streaming."""
196196
input_text = """
197-
Create a bar chart for the following data:
197+
Using Python, sum the number of animals for the following data:
198198
Panda 5
199199
Tiger 8
200200
Lion 3

0 commit comments

Comments
 (0)