Skip to content

Conversation

@joedursun
Copy link
Collaborator

@joedursun joedursun commented Sep 30, 2025

We've been returning JSON back to the LLMs which is inefficient for token usage. We now convert all of the JSON API responses to CSV and flatten any nested objects. We also account for cases where the Polygon API response structure varies (e.g. it's often a JSON object with a results attribute but sometimes the data fields are top level without being nested under that key).

Tests have been added to ensure the JSON to CSV conversion is robust and accurate. This PR also now runs tests for each PR and bumps a few of the dependencies.

@joedursun joedursun requested a review from rian-dolphin October 2, 2025 14:51
@joedursun joedursun merged commit 716d30b into master Oct 14, 2025
1 check passed
@joedursun joedursun deleted the joe.dev branch October 14, 2025 18:36
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