Skip to content

fix: Add actor id data to actor info#687

Merged
baldasseva merged 2 commits intomasterfrom
feat/add-actor-is-to-search-detail
Apr 17, 2026
Merged

fix: Add actor id data to actor info#687
baldasseva merged 2 commits intomasterfrom
feat/add-actor-is-to-search-detail

Conversation

@baldasseva
Copy link
Copy Markdown
Contributor

The chat reponse in console has links that point to apify.com. If I don't receive ids in any way, I'm afraid I can't do anything.

So I want to receive actor ids in the structured data, then prompt the console AI chat to use that id to generate the links and ignore the apify.com url that is sent. I hope this will work!

@baldasseva baldasseva added the adhoc Ad-hoc unplanned task added during the sprint. label Apr 16, 2026
@github-actions github-actions Bot added the t-discovery Issues owned by the discovery team. label Apr 16, 2026
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

LGTM — clean, consistent addition of actor ID across type, schema, and implementation.

Extended reasoning...

Overview

Adds id: string to StructuredActorCard (types.ts), the actorInfoSchema JSON Schema (structured_output_schemas.ts), and the formatActorToStructuredCard return value (actor_card.ts). Three-file change, all aligned.

Security risks

None. This is a read-only data field surfaced from the existing actor.id property already present on Actor | ActorStoreList from the Apify client. No auth, crypto, or permissions code is touched.

Level of scrutiny

Low. The change is purely additive and mechanical — a new string field propagated through type → schema → formatter. All three sites are consistent with each other. The actor.id source is reliable (it comes directly from the Apify API response object).

Other factors

The pre-existing bug (isDeprecated missing from required[]) has zero runtime impact and predates this PR. The PR itself is correct. No prior reviews exist on this PR.

Comment thread src/tools/structured_output_schemas.ts Outdated
@jirispilka jirispilka changed the title adhoc: add actor id data to actor info fix: Add actor id data to actor info Apr 16, 2026
Copy link
Copy Markdown
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.

LGTM, thanks!

I would fix the suggestion from Claude.

As the claude puts it :)
"While this predates the PR, it was a natural opportunity to fix since the required array was already modified to add 'id'."

Pre-approving

@jirispilka jirispilka added t-ai Issues owned by the AI team. and removed t-ai Issues owned by the AI team. labels Apr 16, 2026
@jirispilka
Copy link
Copy Markdown
Collaborator

@baldasseva please merge it before this refactor: #694

I don't think there will be conflicts but it is better to merge this pr and deal with any possible conflict in the #694

@baldasseva baldasseva merged commit b568b33 into master Apr 17, 2026
12 checks passed
@baldasseva baldasseva deleted the feat/add-actor-is-to-search-detail branch April 17, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-discovery Issues owned by the discovery team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants