Skip to main content
Loading navigation
Back to prompt library

Mastra Agent & Claude SDK Integration

Linked challenge: Autonomous Trade Finance Document Verification Agent with Claude Agents SDK and Mastra AI

Prompt source

planning1 lines1 sectionsNo variables0 checklist items
Set up a Mastra AI Agent (`import { Agent } from '@mastra/core'`) powered by Claude (`anthropic('claude-3-7-sonnet')`). Enable extended thinking (`thinking: { type: 'enabled', budget_tokens: 2048 }`). Register tool definitions for checking HS code pricing benchmarks, container number validation (ISO 6346), and vessel AIS route verification.