Skip to content

Conversation

@MQ37
Copy link
Contributor

@MQ37 MQ37 commented Dec 3, 2025

Added structured output and the schema for the following tools:

  • Fetch Actor Details
  • Search Actors
  • Fetch Apify Docs
  • Search Apify Docs

MQ37 added 2 commits December 3, 2025 11:57
Extract duplicate JSON schema definitions from fetch-actor-details and
store-search tools into a centralized src/tools/schemas.ts module. This
eliminates ~170 lines of duplicated code while making schemas easier to
maintain and reuse across tools.

Schemas extracted:
- developerSchema
- pricingSchema
- statsSchema
- actorInfoSchema (reused by both tools)
- actorDetailsOutputSchema
- actorSearchOutputSchema
@github-actions github-actions bot added t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics. labels Dec 3, 2025
MQ37 added 2 commits December 3, 2025 12:37
Remove the multiplication by 1000 in pricingInfoToStructured for PRICE_PER_DATASET_ITEM
model. The pricePerUnit field now correctly represents the actual price per unit,
making the naming consistent and accurate across all pricing models.

Also add JSDoc clarifying that the function transforms API response to match
unstructured text output format for consistency.
@MQ37 MQ37 requested a review from jirispilka December 3, 2025 12:15
Copy link
Collaborator

@jirispilka jirispilka left a comment

Choose a reason for hiding this comment

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

Looks good, I would just rename the schema.ts and move all the schemas to one file.

@jirispilka
Copy link
Collaborator

@MQ37 I've merged master to this branch to deal with the conflicts

@MQ37
Copy link
Contributor Author

MQ37 commented Dec 4, 2025

@MQ37 I've merged master to this branch to deal with the conflicts

Cool, thank you 👍

@MQ37 MQ37 requested a review from jirispilka December 4, 2025 12:19
@MQ37 MQ37 merged commit fb17b1e into master Dec 4, 2025
4 checks passed
@MQ37 MQ37 deleted the structured-output branch December 4, 2025 13:04
@MQ37 MQ37 mentioned this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants