أعلنت أنثروبيك للتو عن ترقية كبيرة لواجهة برمجة التطبيقات الخاصة بها، حيث قدمت أربع ميزات تجريبية جديدة مصممة لتمكين المطورين من بناء وكلاء ذكاء اصطناعي أكثر تطوراً وقدرة. تتضمن هذه التحسينات، التي تستفيد من قوة Claude Opus 4 و Sonnet 4، أداة لتنفيذ التعليمات البرمجية وموصل MCP وواجهة برمجة تطبيقات الملفات وقدرات تخزين مؤقت ممتدة. تهدف هذه الميزات إلى تقليل التعقيد والتكلفة المرتبطة بتطوير وكلاء الذكاء الاصطناعي المتقدمين، مما يسمح للمطورين بالتركيز على الابتكار بدلاً من البنية التحتية.
أداة تنفيذ التعليمات البرمجية: كلود يصبح محلل بيانات
يحول إدخال أداة تنفيذ التعليمات البرمجية كلود من مساعد بسيط لكتابة التعليمات البرمجية إلى محلل بيانات كامل. توفر هذه الأداة لكلود القدرة على تشغيل كود Python في بيئة آمنة ومعزولة، مما يمكنه من أداء مهام حسابية معقدة وإنشاء تصورات بيانات ثاقبة مباشرةً داخل استدعاءات واجهة برمجة التطبيقات (API). تشمل الفوائد وحالات الاستخدام الرئيسية ما يلي:
- تحليل البيانات المحسن: يمكن لكلود الآن تحميل مجموعات البيانات وإنشاء مخططات استكشافية وتحديد الأنماط وتحسين المخرجات بشكل متكرر.
- النمذجة المالية: إنشاء توقعات مالية وتحليل محافظ استثمارية وحساب المقاييس المالية المعقدة.
- الحوسبة العلمية: تنفيذ المحاكاة ومعالجة البيانات التجريبية وتحليل مجموعات البيانات البحثية.
- ذكاء الأعمال: أتمتة إنشاء التقارير وتحليل بيانات المبيعات وإنشاء لوحات معلومات الأداء.
- معالجة المستندات: استخراج البيانات وتحويلها من تنسيقات مختلفة وإنشاء تقارير منسقة وأتمتة سير عمل المستندات.
- التحليل الإحصائي: إجراء تحليل الانحدار واختبار الفرضيات والنمذجة التنبؤية.
تقدم أنثروبيك 50 ساعة مجانية من الاستخدام يوميًا، مع تسعير الاستخدام الإضافي بسعر 0.05 دولارًا أمريكيًا في الساعة لكل حاوية.
موصل MCP: تكامل سلس مع الأنظمة الخارجية
يعمل موصل MCP (بروتوكول سياق النموذج) الجديد على تبسيط عملية توصيل كلود بخوادم MCP عن بُعد بشكل كبير. في السابق، كان على المطورين إنشاء أدوات العميل الخاصة بهم لإدارة هذه الاتصالات. الآن، تتعامل واجهة برمجة التطبيقات (API) الخاصة بـأنثروبيك مع جميع إدارة الاتصالات واكتشاف الأدوات ومعالجة الأخطاء تلقائيًا.
- تكامل مبسط: اتصل بأي خادم MCP بعيد دون كتابة تعليمات برمجية مخصصة للعميل.
- اكتشاف الأداة التلقائي: يتصل كلود تلقائيًا بالخوادم المحددة ويسترد الأدوات المتاحة ويفكر في الأداة التي يجب استدعاؤها والحجج التي يجب تمريرها.
- سير عمل مبسط: يقوم بأتمتة المصادقة ومعالجة الأخطاء، وإرجاع استجابات محسنة مع بيانات متكاملة.
- توسيع النظام البيئي: يتكامل مع نظام بيئي متنامي لخوادم MCP عن بُعد، بما في ذلك Zapier و Asana، مما يتيح الوصول السلس إلى مجموعة واسعة من أدوات الطرف الثالث.
واجهة برمجة تطبيقات الملفات: إدارة فعالة للمستندات
تعمل واجهة برمجة تطبيقات الملفات على تبسيط طريقة تخزين المطورين للمستندات والوصول إليها عند البناء باستخدام كلود. بدلاً من تحميل الملفات بشكل متكرر مع كل طلب، يمكن للمطورين تحميل المستندات مرة واحدة والإشارة إليها عبر محادثات متعددة.
- تطوير مبسط: يعمل على تبسيط سير العمل، خاصة للتطبيقات التي تتعامل مع مجموعات كبيرة من المستندات.
- التكامل مع أداة تنفيذ التعليمات البرمجية: يسمح لكلود بالوصول إلى الملفات التي تم تحميلها ومعالجتها مباشرةً أثناء تنفيذ التعليمات البرمجية، وإنتاج مخرجات مثل الرسوم البيانية والمخططات.
- الوصول المستمر إلى البيانات: قم بتحميل مجموعة بيانات مرة واحدة واجعل كلود يحللها عبر جلسات متعددة دون إعادة التحميل.
تخزين مؤقت ممتد: إدارة سياق فعالة من حيث التكلفة
تقدم أنثروبيك الآن خيار تخزين مؤقت ممتد، مما يسمح للمطورين بالاختيار بين TTL القياسي لمدة 5 دقائق (الوقت المستغرق) و TTL أطول لمدة ساعة واحدة. يمكن أن يقلل هذا التخزين المؤقت الممتد بشكل كبير من التكاليف والكمون، خاصة بالنسبة لسير عمل الوكيل طويل الأجل.
- خفض التكاليف: تقليل النفقات بنسبة تصل إلى 90٪ للمطالبات الطويلة.
- تقليل زمن الوصول: جرب تقليل زمن الوصول بنسبة تصل إلى 85٪ للمطالبات الطويلة.
- صيانة محسنة للسياق: قم ببناء وكلاء يحتفظون بالسياق على مدى فترات طويلة، وهو مثالي لسير العمل متعدد الخطوات وتحليل المستندات المعقد والتنسيق مع الأنظمة الأخرى.
في الختام، تمثل هذه القدرات الجديدة خطوة كبيرة إلى الأمام في تطوير وكلاء الذكاء الاصطناعي على واجهة برمجة التطبيقات (API) الخاصة بـأنثروبيك. من خلال تبسيط التكامل مع الأنظمة الخارجية، وتمكين تحليل بيانات قوي، وتقديم إدارة سياق فعالة من حيث التكلفة، فإن أنثروبيك تمكن المطورين من بناء حلول ذكاء اصطناعي أكثر تطوراً وعملية. جميع الميزات متاحة حاليًا في الإصدار التجريبي العام.
المصدر: Anthropic
Anthropic has just announced a significant upgrade to its API, introducing four new beta features designed to empower developers in building more sophisticated and capable AI agents. These enhancements, which leverage the power of Claude Opus 4 and Sonnet 4, include a code execution tool, an MCP connector, a Files API, and extended prompt caching capabilities. These features aim to reduce the complexity and cost associated with developing advanced AI agents, allowing developers to focus on innovation rather than infrastructure.
The introduction of the code execution tool transforms Claude from a simple code-writing assistant into a fully fledged data analyst. This tool provides Claude with the ability to run Python code within a secure, sandboxed environment, enabling it to perform complex computational tasks and generate insightful data visualizations directly within API calls. Key benefits and use cases include:
- Enhanced Data Analysis: Claude can now load datasets, create exploratory charts, identify patterns, and refine outputs iteratively.
- Financial Modeling: Generate projections, analyze investment portfolios, and calculate financial metrics.
- Scientific Computing: Execute simulations, process experimental data, and analyze research datasets.
- Business Intelligence: Automate report generation, analyze sales data, and create performance dashboards.
- Document Processing: Extract and transform data from various formats, generate formatted reports, and automate document workflows.
- Statistical Analysis: Perform regression analysis, hypothesis testing, and predictive modeling.
Anthropic is offering 50 free hours of usage per day, with additional usage priced at $0.05 per hour per container.
MCP Connector: Seamless Integration with External Systems
The new MCP (Model Context Protocol) connector dramatically simplifies the process of connecting Claude to remote MCP servers. Previously, developers had to build their own client harnesses to manage these connections. Now, the Anthropic API handles all connection management, tool discovery, and error handling automatically.
- Simplified Integration: Connect to any remote MCP server without writing custom client code.
- Automatic Tool Discovery: Claude automatically connects to specified servers, retrieves available tools, and reasons about which tool to call and what arguments to pass.
- Streamlined Workflow: Automates authentication and error handling, returning enhanced responses with integrated data.
- Ecosystem Expansion: Integrates with a growing ecosystem of remote MCP servers, including Zapier and Asana, enabling seamless access to a wide range of third-party tools.
Files API: Efficient Document Management
The Files API streamlines the way developers store and access documents when building with Claude. Instead of repeatedly uploading files with each request, developers can upload documents once and reference them across multiple conversations.
- Simplified Development: Streamlines workflows, especially for applications dealing with large document sets.
- Integration with Code Execution Tool: Allows Claude to access and process uploaded files directly during code execution, producing outputs like charts and graphs.
- Persistent Data Access: Upload a dataset once and have Claude analyze it across multiple sessions without re-uploading.
Extended Prompt Caching: Cost-Effective Context Management
Anthropic is now offering an extended prompt caching option, allowing developers to choose between the standard 5-minute TTL (Time To Live) and a longer 1-hour TTL. This extended caching can significantly reduce costs and latency, particularly for long-running agent workflows.
- Reduced Costs: Reduce expenses by up to 90% for long prompts.
- Lower Latency: Experience latency reductions of up to 85% for long prompts.
- Enhanced Context Maintenance: Build agents that maintain context over extended periods, ideal for multi-step workflows, complex document analysis, and coordination with other systems.
In conclusion, these new capabilities represent a significant step forward in the development of AI agents on the Anthropic API. By simplifying integration with external systems, enabling powerful data analysis, and offering cost-effective context management, Anthropic is empowering developers to build more sophisticated and practical AI solutions. All features are currently available in public beta.
Source: Anthropic
جاري تحميل التعليقات...