Skip to content

Conversation

@mattapperson
Copy link
Collaborator

Summary

Addresses feedback from louisgv on PR #49.

Changes

  • CI: Replace npx with pnpm dlx for consistency with pnpm package manager
  • Type Safety: Add isNonStreamingResponse type guard to replace unsafe type casts
  • Code Quality: Refactor IIFE patterns in getMessage() and getText() to cleaner private helper methods
  • Style: Add braces to single-line if statement for readability

Related

@mattapperson mattapperson force-pushed the fix/pr49-feedback branch 3 times, most recently from bf22cc5 to 94729c3 Compare November 20, 2025 23:46
- Add type guard for safer response type checking
- Refactor IIFE patterns in getMessage/getText to private helper methods
- Add braces to single-line if statement for readability
- Add validation before assigning finalResponse
- Implement parallel tool calling with Promise.allSettled for better error handling
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