This blog post focuses on new features and improvements. For a comprehensive list, including bug fixes, please see the release notes.
We're rolling out two key features that change how you build AI using Clarifai: support for AI agents and the Model Context Protocol (MCP).
AI agents are a big step beyond single-task AI models. Instead of just doing one thing, an agent can reason, plan, and take multiple actions to achieve a larger goal. Think of them as AI programs that can break down complex problems and use different tools or models to get the job done.
With this release, we're making it easier to build these agents on Clarifai. This means you can:
This opens up possibilities for more advanced AI applications that can make decisions and adapt to situations.
To show you what and how you can build AI Agents, we've created an AI Blog Writing Agent using Clarifai and CrewAI!
In this video, we build an AI-powered blog writing agent that generates complete blog posts from scratch. We use:
For AI agents to be truly useful, they need access to real-time information from outside their internal data. The Model Context Protocol (MCP) solves this by providing a standardized way for AI models and agents to interact with external data sources and APIs.
We've integrated MCP, allowing you to:
Combining AI agents with MCP means your AI can not only think and plan but also actively fetch and use real-world information, making your AI applications more powerful and relevant. Learn more here.
Clarifai now offers an OpenAI-compatible API endpoint, allowing you to use your existing OpenAI code and workflows to run inferences with Clarifai models, including those that integrate or wrap OpenAI models.
The compatibility layer automatically translates OpenAI-style requests into Clarifai API calls, so you can access Clarifai’s broad model library as custom tools within your OpenAI-based projects.
This removes the need to rewrite your code for Clarifai’s native API, making integration fast and simple for teams already familiar with OpenAI.
Below is an example that uses the OpenAI Python client library to interact with a Clarifai model via Clarifai's OpenAI-compatible API endpoint. Read more here
We have made numerous improvements to the Python SDK to enhance stability, usability, and integration capabilities:
Restored support for pretrained model configuration files.
Added the clarifai model init
CLI command to generate default files for model uploads.
Resolved issues affecting model upload reliability and workflows.
Improved handling of Clarifai configuration during URL construction.
Updated code snippets for MCP and OpenAI integrations.
Fixed a bug in MCPModelClass
that impacted notifications.
Enhanced OpenAIModelClass
to streamline request processing, improve modularity, and simplify parameter extraction and validation.
Fixed a bug in OpenAIModelClass
to ensure full JSON responses are returned.
Cleaned up fastmcp
implementation for better maintainability.
Added OpenAIModelClass
to support OpenAI-compatible API endpoints.
Fixed utility functions for OpenAI messages and code snippets.
There are many more updates. Learn more here.
We’re excited about the new Agentic and MCP support in Clarifai and are looking forward to seeing the kinds of applications the community builds around it. Check out our video tutorial on building an AI Blog Writing Agent to see AI Agents in action. You can also explore more examples here.
Explore the documentation and start building today. We’ll also be adding more agent examples and templates soon, so stay tuned.
If you have any questions, send us a message on our Community Discord channel. Thanks for reading!
© 2023 Clarifai, Inc. Terms of Service Content TakedownPrivacy Policy
© 2023 Clarifai, Inc. Terms of Service Content TakedownPrivacy Policy