You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docs): correct AgenticParse/AgenticSearch plugin API and format support
- Remove broken documentParserRegistry option from Node.js plugin examples
(class instances couldn't be passed as plugins due to napi-rs type mismatch)
- Replace PDF/Word/Excel claims with accurate plain-text format list
- Document that binary format support requires Rust DocumentParser impl
- Update agentic-search example 6 to use correct new AgenticSearch() syntax
- Update code submodule to 5ccbff5 (plugin fix)
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/code/examples/agentic-search.mdx
+9-22Lines changed: 9 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -456,26 +456,23 @@ result = session.send("""
456
456
457
457
---
458
458
459
-
### Example 6: Document Parsing Configuration
459
+
### Example 6: Supported File Formats
460
460
461
-
Enable parsing of binary documents (PDF, DOCX, etc.) by passing `DocumentParserRegistry` as a **plugin option**:
461
+
`agentic_search` handles source code, Markdown, JSON, TOML, YAML, HCL, CSV, and other plain-text formats out of the box — no extra configuration needed. Just enable the plugin:
// Now agentic_search can parse PDF, DOCX, and other binary documents
516
-
letresult=session.send(
517
-
"Search for 'privacy policy' in all documents including PDFs"
518
-
).await?;
503
+
letresult=session.send("Search for 'privacy policy' across all source files").await?;
519
504
```
520
505
</Tab>
521
506
</Tabs>
522
507
508
+
Binary formats (PDF, Word, Excel) require a custom `DocumentParser` implementation in Rust via the `DocumentParser` trait. This is not currently exposed in the TypeScript or Python SDKs.
509
+
523
510
<Callouttype="info">
524
511
Without `DocumentParserRegistry`, agentic_search only reads plain text files. Document parsing is optional and configured per-plugin.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/code/plugins.mdx
+18-22Lines changed: 18 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,34 +89,30 @@ This means plugin companion skills appear in the **first turn's system prompt**
89
89
90
90
If a plugin's `load()` call fails (e.g. `AgenticParse` without an LLM client), only that plugin is skipped. Other plugins continue loading normally. Failed plugins do **not** register their companion skills.
91
91
92
-
## Document Parser Support
92
+
## Supported File Formats
93
93
94
-
For binary file formats (PDF, Excel, Word), pass a `DocumentParserRegistry` as a plugin option. This signals to the plugin that document parsing is enabled for that session.
94
+
Both `AgenticSearch` and `AgenticParse` work with plain-text formats out of the box — no extra configuration needed:
Register a custom parser by calling `DocumentParserRegistry::register()` in Rust before building the session options. This is not currently exposed in the TypeScript or Python SDKs.
117
113
118
114
<Callouttype="info">
119
-
`DocumentParserRegistry` in the SDK is a signal — it enables the binary-format parsing path. Custom parsers (PDF, Excel, DOCX) are implemented in Rust by implementing the `DocumentParser` trait and registering with `DocumentParserRegistry::register()`.
115
+
The `DocumentParserRegistry`class in the Node.js SDK is reserved for future use and has no effect at runtime. Pass `new AgenticSearch()` or `new AgenticParse()` directly — no registry needed.
LLM-enhanced document parsing. Decodes binary formats via `DocumentParserRegistry`, then applies structural extraction and optionally an LLM pass for semantic QA.
257
+
LLM-enhanced document parsing. Applies structural extraction and optionally an LLM pass for semantic QA.
# DocumentParserRegistry is a signal enabling binary format support.
291
-
# Custom parsers (PDF, Excel) are registered in Rust via the DocumentParser trait.
292
-
opts.plugins = [AgenticParse()]
293
-
```
294
-
</Tab>
295
-
</Tabs>
274
+
`agentic_parse` supports plain-text formats out of the box: source code, Markdown, JSON, TOML, YAML, HCL, CSV, and more. Binary formats (PDF, Word, Excel) require a custom `DocumentParser` implementation in Rust — not currently exposed in the TypeScript or Python SDKs.
0 commit comments