Add FileParserPlugin example for Effect AI#52
Merged
subtleGradient merged 1 commit intomainfrom Nov 19, 2025
Merged
Conversation
This was referenced Nov 12, 2025
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4bef188 to
2ab1077
Compare
2ab1077 to
1e16343
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive FileParserPlugin example for Effect AI, demonstrating how to process PDF files using OpenRouter's file parser plugin with Effect's type-safe, composable architecture.
Key Changes:
- Adds Effect AI example with layer-based dependency injection and concurrent PDF processing
- Demonstrates proper file attachment handling using
Prompt.makePart('file', ...) - Implements Effect patterns including
Effect.gen, error handling withEffect.catchAll, and concurrent execution withEffect.all
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
typescript/effect-ai/src/plugin-file-parser/file-parser-all-sizes.ts |
Main example demonstrating FileParserPlugin with Effect AI patterns for processing multiple PDF sizes concurrently |
typescript/effect-ai/src/plugin-file-parser/README.md |
Documentation explaining the Effect AI integration features and usage instructions |
Comments suppressed due to low confidence (1)
typescript/effect-ai/src/plugin-file-parser/file-parser-all-sizes.ts:30
- Unused import getPdfPath.
import {
type PdfSize,
PDF_SIZES,
extractCode,
formatSize,
getPdfPath,
getPdfSize,
readExpectedCode,
readPdfAsDataUrl,
} from '@openrouter-examples/shared/fixtures';
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
typescript/effect-ai/src/plugin-file-parser/file-parser-all-sizes.ts
Outdated
Show resolved
Hide resolved
typescript/effect-ai/src/plugin-file-parser/file-parser-all-sizes.ts
Outdated
Show resolved
Hide resolved
typescript/effect-ai/src/plugin-file-parser/file-parser-all-sizes.ts
Outdated
Show resolved
Hide resolved
1e16343 to
9c1f09c
Compare
e069c8d to
25cbe98
Compare
This was referenced Nov 12, 2025
louisgv
approved these changes
Nov 13, 2025
Member
louisgv
left a comment
There was a problem hiding this comment.
This example turned into super complex here? -- I think we need a simple example still.
25cbe98 to
ec6d0fd
Compare
9c1f09c to
2fbc45d
Compare
Contributor
Author
Merge activity
|
Add Effect AI example that demonstrates PDF processing using: - Effect.gen for effect composition - Layer-based dependency injection - Type-safe error handling - Shared fixtures module for PDF test files No PDF fixtures included - these should be inherited from pdf-example-fetch in the stack.
2fbc45d to
7733d09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add FileParserPlugin example for AI SDK v5
Add shared fixtures module and JSON metadata
Fix stylecheck issues in AI SDK examples
Add FileParserPlugin example for Effect AI
Update Effect AI example to use shared fixtures module