Spaces:
Running
Running
File size: 773 Bytes
db9635c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# 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
|