Skip to content

test: cover multi-action tool call join in non-pricy suite - #30

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1789677968-multiaction-coverage
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1789677968-multiaction-coverage

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

The len(actions) > 1 branch in _parse_response (AgentlabAction.convert_multiactions_to_agentlab_action_format) was only exercised by test_multi_action_tool_calls, which is @pytest.mark.pricy and skipped in CI, so a regression in parallel tool-call handling could drop or mis-join actions unnoticed.

Adds four non-pricy tests to tests/llm/test_response_api.py:

  • test_convert_multiactions_to_agentlab_action_format: [] -> None, single action passthrough, two actions joined with \n.
  • test_openai_chat_completion_model_parse_multi_action, test_openai_response_model_parse_multi_action, test_claude_response_model_parse_multi_action: mocked responses with two tool calls, asserting parsed.action == "get_weather(location='Paris')\nget_weather(location='Delhi')" and len(tool_calls) == 2.

create_mock_anthropic_response now accepts a list for tool_use (single dict still works):

tool_uses = tool_use if isinstance(tool_use, list) else [tool_use]
for tu in tool_uses: ...

No source changes.

Devin-Org: engineering

Link to Devin session: https://app.devin.ai/sessions/5450aa73dd284d88ace11bfa269b8fe9
Open in Devin Desktop: https://app.devin.ai/desktop/session/5450aa73dd284d88ace11bfa269b8fe9?variant=devin

@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants