feat: Implement audio transcription and agent hooks
- Added a new POST route for audio transcription in `app/api/audio/route.ts` that utilizes the Mastra instance to transcribe audio files uploaded via form data. - Created custom hooks for managing agent interactions: - `lib/hooks/use-agent-messages.ts`: Fetches messages from a specific thread for a given agent. - `lib/hooks/use-agent.ts`: Retrieves details of a specified agent. - `lib/hooks/use-delete-thread.ts`: Provides functionality to delete a memory thread and invalidate related queries. - `lib/hooks/use-memory.ts`: Checks the memory status of a specified agent. - `lib/hooks/use-mobile.ts`: Detects if the application is being accessed on a mobile device. - `lib/hooks/use-threads.ts`: Lists memory threads for a specific resource and agent. - Introduced a new note-taking agent in `src/mastra/agents/noteTakerAgent.ts` with specific instructions and voice capabilities using Google Voice. - Established a structured approach for handling memory and threads in the application, enhancing the overall functionality and user experience.
S
ssdeanx committed
3e82388ede34a74a6f9eb552bb0a322a5cb90259
Parent: 36e331e