Commit Graph

8 Commits

Author SHA1 Message Date
Dan e231104a29 feat(ai-assistant): upgrade AI models to GPT-5.4 for enhanced performance 2026-06-05 11:26:45 +01:00
Dan c1d74d5fe2 feat(ai-assistant): introduce expert delegation tool and enhance chat functionality
- Added the `askExpert` tool to delegate complex questions to a specialist agent, improving the assistant's ability to handle in-depth inquiries.
- Updated the AIChatMessages component by removing the feedback bar and streamlining message rendering.
- Enhanced the AIChatToolCall component with a new label for the expert consultation process.
- Introduced a new reasoning agent to facilitate complex reasoning tasks and integrated it into the assistant's toolset.
- Updated the router prompt to reflect the new capabilities of the assistant, emphasizing the use of the `askExpert` tool for complex queries.
2026-06-04 16:13:59 +01:00
Dan a7d4c3256f feat(ai-assistant): rename getQuerySchema to getTableSchema and update related functionality
- Renamed the getQuerySchema tool to getTableSchema for clarity and updated its implementation to fetch table-specific column schemas.
- Adjusted the dashboard assistant and related tools to utilize getTableSchema in the workflow for executing TRQL queries.
- Introduced a new generated schema file for TRQL tables to support the updated getTableSchema functionality.
- Updated documentation to reflect changes in the toolchain and usage instructions for querying data.
2026-06-04 15:42:59 +01:00
Dan 1425369f81 feat(ai-assistant): add getApiDetails tool for enhanced API operation schema retrieval
- Introduced the getApiDetails tool to fetch the full schema for REST API operations, including parameters and request body shape.
- Updated the dashboard assistant to incorporate getApiDetails in the multi-step tool chain.
- Enhanced error messages in executeApiCall to suggest using getApiDetails for missing parameters.
- Updated documentation to reflect the new workflow for API operations, emphasizing the importance of calling getApiDetails before callApi.
2026-06-04 15:25:58 +01:00
Dan 958db9e0f2 feat(ai-assistant): REST API and data-query agent tools with approval gating
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 14:48:46 +01:00
Dan 03977be808 feat(ai-assistant): UI polish, agent-step display, history-switch fix, and session persistence
- Sparkle hover animation on the Ask AI button and assistant header, plus a
  redesigned header close button (Button + ExitIcon + esc shortcut)
- AIChatPanel resumes an existing chat and sends the current page context when
  starting a session
- Every completed tool call is shown as an agent step in the transcript, in the
  order the agent ran them, labelled with the tool's name and expandable to
  reveal its input and output
- AIChatProvider guards history switching against out-of-order responses and
  sets messages before the chat id so useChat picks them up in one render
- resources.ai-assistant slug validation + error handling; chat history now
  uses a typed Prisma query instead of raw SQL
- buildToolContext validates required slugs
- chat persistence uses sessions.start() in the preload hooks with a lazy
  aiChat upsert in onTurnStart

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 11:00:35 +01:00
Dan 36628d6bd3 feat(ai-assistant): enhance chat UI with improved input handling and message display
- Updated AskAI component to hide when the chat drawer is open.
- Modified AIChatContextBanner for better styling.
- Refactored AIChatHeader to include scroll handling and improved chat history display.
- Enhanced AIChatInput to support auto-growing text area and focus management.
- Improved AIChatMessages to handle scrolling and display messages more effectively.
- Added error handling and retry functionality in AIChatPanel.
- Introduced new suggested prompts with animation effects.

These changes aim to provide a more seamless and user-friendly chat experience in the AI assistant interface.
2026-06-02 20:19:20 +01:00
Dan 3e42603e03 feat(ai-assistant): dashboard agent task, tools, and session routes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 18:30:00 +01:00