Skip to content

Conversation

@mattapperson
Copy link
Collaborator

Summary

  • Adds a new E2E test that verifies generator tools are properly called via callModel() and that preliminary events are emitted in real-time via getToolStream()
  • The test defines a search_with_progress generator tool that yields 3 preliminary events with increasing progress values (0, 50, 90) before the final result
  • Uses anthropic/claude-haiku-4.5 model

Test plan

  • Test passes locally with npx vitest tests/e2e/call-model.test.ts -t "should stream preliminary results from generator tools via getToolStream"
  • Full test suite passes with npx vitest tests/e2e/call-model.test.ts

Adds a test that verifies generator tools emit preliminary results
in real-time via getToolStream(). The test uses a search_with_progress
tool that yields status/progress events before the final result.
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