A stateless C# External Logic library that handles the text processing work on either side of your AI Gateway calls for Level 5 Agentic Chunking workflows inside ODC.
Three actions are exposed. PreChunkForExtraction splits source text into token-safe batches before the extraction call, respecting paragraph and sentence boundaries. ParsePropositions parses the raw AI Gateway response into a clean list of proposition strings, handling code fences and escaped quotes. NormaliseAgenticOutput maps the grouping response to typed AgenticChunk structures with ChunkId, ThematicCategory, MergedContent, PropositionCount, CharacterCount, TokenEstimate, and SHA-256 hash.
The library does not call the AI Gateway. It does not store state. It handles the C# work ODC cannot do natively: JSON parsing, SHA-256 hashing, and token-safe text batching.
Designed to pair with an ODC App that owns the AI Gateway calls and the AgenticChunkingODC orchestration logic. ODC only. Not compatible with OutSystems 11.
https://opensource.org/licenses/BSD-3-Clause