Re-enabled the create_agent_package tool with proper parameter typing using
z.infer for runtime type safety. The tool now works with Vercel AI SDK's
tool calling mechanism.
Changes:
- Update create-agent-package.ts with z.infer type annotations
- Update qdrant-rag.ts with consistent z.infer typing pattern
- Re-enable tool import in definitions.ts
- Activate create_agent_package in Morgan's agent configuration
- Add explanatory comments about Vercel AI SDK typing workarounds
This enables Morgan to create custom AI agents through the native Vercel AI SDK
tool calling interface. The workaround is necessary due to TypeScript
overload resolution limitations in the tool() function, but the tool executes
correctly at runtime.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>