Add YouTube comments gateway and analyzer examples - #148
Conversation
There was a problem hiding this comment.
Hi @JaiswalShivang 👋🏼 thank you for taking the time to contribute this. The YouTube comments → sentiment/action-items example is a thoughtful use case, and I’d like to help get it over the line.
The remaining work is fairly contained:
- Package it: use a dedicated example directory, place the contracts under src/, and add a short README and examples-index entry.
- Clarify it: describe the material comment/result fields, comment and citation IDs, and what makes an update materially different.
- Verify it: add a small offline check—discoverable by the examples gate—covering both an identical delivery and a materially changed comment.
No new contract syntax is needed; the existing sections can express these details in plain language.
If you’d like to make these changes, I’m happy to review the next pass. If you’d prefer, I can add them as a separate maintainer follow-up commit, explain what changed, and give you a chance to look it over before the final merge decision.
Separately, I’d love to hear more about how you’re using OpenProse and what we could improve. If you’d ever like to chat with us about it, I’d be happy to arrange that.
|
Hi @josemontesdeoca 👋🏼 Thank you so much for the thoughtful review and the kind words! To give you a bit of context, I originally found OpenProse while searching for open-source projects to contribute to, as I am currently actively looking for internship opportunities. The declarative approach to AI workflows really caught my eye, which is why I decided to dive in and build this out. I would love to make these updates myself to get a better understanding of the project's testing patterns and structure. I will work on packaging it into a dedicated directory, clarifying the fields, and adding the offline verification checks. I'll ping you as soon as I push the next pass! I would also absolutely love to take you up on the offer to chat. It would be great to share my thoughts on the framework and learn more about what your team is building. Let me know what platform or time works best for you to connect! |
Add YouTube comment analyzer pedagogical tutorial examples
1. Summary
skills/open-prose/examples/youtube-comments-gateway.prose.mdto model external-driven comment ingress.skills/open-prose/examples/youtube-analyzer.prose.mdto manage comment sentiment analysis and top action items extraction.runtime_contract: 2specifications, using canonical### Requiresand### Maintainssections (avoiding legacyRequires.inputorMaintains.outputheaders).#### comments,#### sentiment-breakdown,#### action-items) using the named-parts rule under### Maintains.2. Use Case / Run Evidence
This example provides a concrete onboarding scenario for developers transitioning from traditional imperative pipelines (e.g., Python/FastAPI pipelines that poll and run LLMs continuously) to declarative multi-node graphs.
It illustrates how the Reactor reconciler enforces the "cost scales with surprise" thesis: when the incoming YouTube comment dataset doesn't change, the gateway memo-skips, preventing downstream sentiment rendering from burning tokens.
3. Design Boundary
The new files are placed directly under
skills/open-prose/examples/as a standalone tutorial example. This addition stays within the framework boundary by utilizing core language primitives (gateway,responsibility,facets, andpostconditions) without introducing hosted-product concepts or modifying compiler internals.4. Examples
YouTube Comments Gateway Node (
kind: gateway)