VibeGame / src /lib /utils /context.md
dylanebert's picture
improved prompting/UX
db9635c
# 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