Commit 87b7c92
fix: Use readmeSummary instead of full readme to avoid context bloat (#454)
* fix: Use readmeSummary instead of full readme to avoid context bloat
* Do not conflate readmeSummary and readme when fetching
* Fill in the readmeSummary in tool outputs
* Do not return full readme from actor detail tool
* Use stable apify-client
* Fix forgotten readme option
* Update integration test
* Prefer readmeSummary with full readme fallback, remove duplicate readme from widget payload
- Add resolveReadmeContent() helper: prefers readmeSummary, falls back to full readme
- Normal mode: uses summary-or-fallback for both text and structuredContent
- OpenAI widget mode: always uses full readme via original processActorDetailsForResponse
- Remove duplicate top-level readme from widget structuredContent (widget reads actorDetails.readme)
- Rename user-facing output option from readmeSummary to readme
- Remove readmeSummary from search tool outputs and StructuredActorCard
- Add readmeSummary to ActorDefinitionPruned for data pass-through
- Add integration test helpers and README content tests
- Fix typo in fetch-actor-details-internal description
---------
Co-authored-by: MQ37 <themq37@gmail.com>1 parent b25d639 commit 87b7c92
10 files changed
Lines changed: 389 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 63 | + | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
| 71 | + | |
| 72 | + | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments