OpenRouter Agent Migration
Streamlines the transition from @openrouter/sdk to @openrouter/agent for advanced AI agent functionalities and tool calling.
The OpenRouter Agent Migration skill is designed to help developers modernize their OpenRouter implementations by moving from the legacy monolithic SDK to the specialized @openrouter/agent package. It provides precise mapping for imports, refactoring guidance for tool definitions, and implementation patterns for exclusive new features like shared context schemas, tool approval flows, and turn lifecycle callbacks. This skill is essential for developers building production-grade AI agents who require granular control over model calls and tool execution within the OpenRouter ecosystem.
주요 기능
01Migration support for callModel, tool() factory, and complex stop conditions
02Standardized refactoring of format converters and type guards
03Implementation guides for agent-only features like Shared Context and Tool Approval
04Automated mapping of imports from @openrouter/sdk to @openrouter/agent subpaths
05Guidance on managing side-by-side installations for legacy feature support
06152 GitHub stars
사용 사례
01Refactoring existing OpenRouter AI agents to use the optimized agent-specific library
02Modernizing codebase structure using modular subpath exports for better bundle sizes
03Adding human-in-the-loop tool approval workflows to existing AI applications