Skip to content

Conversation

@Natwar589
Copy link
Collaborator

No description provided.

…TML formatter

Add constants.py with two predefined response templates (notification card and email form) including JSON schemas and HTML representations. Add formatter.py with comprehensive rendering logic for various UI components (Card, Form, DatePicker, Button, Text, Icon, etc.) and path-based variable substitution for dynamic content.
…ipt boolean literals to Python in constants

Add conditional checks before deleting '_id', 'bridge_ids', and 'folder_id' from api_data to prevent KeyError. Replace JavaScript boolean literals (true/false) with Python equivalents (True/False) in RESPONSE_TEMPLATES. Extract buttons HTML rendering into a variable for cleaner code formatting.
…mproved schema handling, and DaisyUI styling

Refactor template rendering logic to support multiple template IDs with automatic best-match selection based on AI output structure. Add configuration parsing with fallback handling for string/dict types. Implement template-to-schema conversion in restructure_json_schema using anyOf for multiple templates. Replace custom CSS with DaisyUI components (Card, Form, Button, Badge, etc.) an
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants