Skip to content

Add assertStructuredContent method#140

Merged
taylorotwell merged 2 commits intolaravel:mainfrom
gdebrauwer:assert-structured-content
Jan 28, 2026
Merged

Add assertStructuredContent method#140
taylorotwell merged 2 commits intolaravel:mainfrom
gdebrauwer:assert-structured-content

Conversation

@gdebrauwer
Copy link
Contributor

There is currently no way to assert the structured content of a tool response. This PR fixes that.

$response = BookingServer::tool(GetBookingTool::class);

$response->assertStructuredContent([
	'type' => 'booking',
	'id' => 123,
	'status' => 'confirmed',
]);

@pushpak1300
Copy link
Member

Can you fix static analysis issue ?

@taylorotwell taylorotwell merged commit 592140d into laravel:main Jan 28, 2026
15 of 19 checks passed
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.

3 participants