# 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