Spaces:
Running
Running
| # Utils Context | |
| Shared utility functions and helpers | |
| ## Purpose | |
| - Reusable utilities for the application | |
| - Cross-cutting concerns like parsing and validation | |
| ## Layout | |
| ``` | |
| utils/ | |
| βββ context.md # This file | |
| βββ tool-call-parser.ts # Tool call extraction wrapper | |
| βββ tool-parser-htmlparser2.ts # Regex-based parser for tool tags | |
| ``` | |
| ## Scope | |
| - In-scope: Stateless utilities, parsers, formatters | |
| - Out-of-scope: Business logic, UI components, state management | |
| ## Entrypoints | |
| - `tool-call-parser.ts` - StreamingToolCallParser class and utility functions | |
| - `tool-parser-htmlparser2.ts` - ToolParser class for extracting tool tags | |
| ## Dependencies | |
| - No external dependencies | |
| - Used by chat components and server-side agent | |