Skip to content

test: More integration tests of autonomous agents#1512

Merged
pvlugter merged 1 commit intomulti-agent-devfrom
wip-aa-more-tests-patriknw
Apr 14, 2026
Merged

test: More integration tests of autonomous agents#1512
pvlugter merged 1 commit intomulti-agent-devfrom
wip-aa-more-tests-patriknw

Conversation

@patriknw
Copy link
Copy Markdown
Contributor

  • cover usages of all tool calls provided by TestModelProvider

On top of #1511

"send_message factory method not yet implemented in AutonomousAgentTools — see team"
+ " discussion")
public void shouldSendMessageBetweenTeamMembers() {
// Placeholder: test sendMessage(String to, String message) once the factory method is added
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How shall we support send_message in the TestModelProvider? It should take an agent instance id if I understand it correctly. How would you know what id to use from the test? That's a generated uuid.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may need to parse it from the context messages, which gives the contact list. We could create helpers to do this in some way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in #1516

Base automatically changed from wip-aa-TestModelProvider-patriknw to multi-agent-dev April 14, 2026 01:54
* cover usages of all tool calls provided by TestModelProvider
@pvlugter pvlugter force-pushed the wip-aa-more-tests-patriknw branch from 33d2928 to df4ac4a Compare April 14, 2026 01:58
Copy link
Copy Markdown
Member

@pvlugter pvlugter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


@Test
public void shouldGetAgentState() {
testAgentModel.fixedResponse(completeTask("{\"value\":\"done\",\"score\":1}"));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I already added a variation on complete task that can take an object so that it can be serialized to JSON automatically and the integration test can feel more realistic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, follow up in #1513

"send_message factory method not yet implemented in AutonomousAgentTools — see team"
+ " discussion")
public void shouldSendMessageBetweenTeamMembers() {
// Placeholder: test sendMessage(String to, String message) once the factory method is added
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may need to parse it from the context messages, which gives the contact list. We could create helpers to do this in some way.

@pvlugter pvlugter marked this pull request as ready for review April 14, 2026 02:14
@pvlugter pvlugter merged commit fad8c20 into multi-agent-dev Apr 14, 2026
35 checks passed
@pvlugter pvlugter deleted the wip-aa-more-tests-patriknw branch April 14, 2026 02:14
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.

2 participants