Empower your applications by seamlessly connecting with the .do platform and leveraging its agentic workflow capabilities through our powerful Software Development Kit.
The digital landscape is constantly evolving, and the need for flexible, integrated, and intelligent systems is paramount. For developers building on or integrating with the .do platform, our Software Development Kit (SDK) is your key to unlocking its full potential. The .do SDK (sdk.do) provides a robust and easy-to-use interface for programmatically interacting with the platform, allowing you to build custom solutions, automate complex workflows, and connect your existing services like never before.
This blog post will focus specifically on how you can use the .do SDK to manage agents programmatically – a core component of the .do platform's agentic AI capabilities. Whether you're looking to deploy new agents, get insights into existing ones, or trigger workflows based on external events, the SDK makes it possible.
The .do SDK is a comprehensive library that encapsulates the .do platform's API, making it simple to interact with its various features from your own applications. It serves as the bridge between your code and the powerful capabilities of the .do platform, including:
By using the SDK, you abstract away the complexities of direct API calls, allowing you to focus on building your business logic and integrating with the platform efficiently. Think of it as providing a "Business as Code" approach, where your business processes become programmable software components.
Getting started with the .do SDK is straightforward. It's typically installed using standard package managers like npm or yarn. Once installed and configured with your API key, you can immediately begin interacting with the platform.
Here's a simple example demonstrating how to use the .do SDK to fetch a list of available agents:
import { DoSDK } from '@do/sdk';
const sdk = new DoSDK({
apiKey: 'YOUR_API_KEY',
});
// Example: Fetch available agents
async function listAgents() {
try {
const agents = await sdk.agents.list();
console.log('Available Agents:', agents);
} catch (error) {
console.error('Error listing agents:', error);
}
}
listAgents();
This simple code snippet illustrates the ease of use provided by the SDK. With just a few lines of code, you can interact with core platform functionalities.
One of the most powerful uses of the .do SDK is programmatically managing your agents. This allows you to:
This level of programmatic control is crucial for building dynamic and responsive applications that leverage the full potential of the .do platform's agentic capabilities. You can create systems where agents are spun up or scaled based on demand, or where agent behavior is adjusted dynamically based on external data. This aligns perfectly with the concept of "Services as Software," where the functionality of the platform's agents becomes programmatically accessible.
Whether you're building a custom dashboard to monitor your agents, an event-driven system that triggers agent actions, or a sophisticated application that requires granular control over your agent ecosystem, the .do SDK provides the necessary tools.
Ready to start integrating and extending with the .do SDK?
npm install @do/sdk
# or
yarn add @do/sdk
The SDK is designed to be flexible and can be used with a variety of programming languages, although we provide primary examples and support for TypeScript/JavaScript due to its widespread use in web and backend development. The underlying API, accessed by the SDK, can be utilized from any language capable of making HTTP requests.
The .do SDK is your essential tool for unlocking the full power of the .do platform. Start building your custom solutions, automating your workflows, and integrating with your services with ease today!