📔Creating Toolkits
Toolkits allow you to make tools available to all UnifAI agents as a service. This section shows you how to create, configure, and run your toolkits using both the JavaScript/TypeScript and Python SDK
Overview
Toolkit Creation and Configuration
Initialize the Toolkit
import { Toolkit } from 'unifai-sdk';
const toolkit = new Toolkit({ apiKey: 'YOUR_TOOLKIT_API_KEY' });import unifai
toolkit = unifai.Toolkit(api_key='YOUR_TOOLKIT_API_KEY')use unifai_sdk::toolkit::*;
let mut toolkit = ToolkitService::new("YOUR_TOOLKIT_API_KEY");Update Toolkit Details
await toolkit.updateToolkit({
name: "EchoChamber",
description: "What's in, what's out."
});await toolkit.update_toolkit(
name="EchoChamber",
description="What's in, what's out."
)
# Or using asyncio.run():
# asyncio.run(toolkit.update_toolkit(name="EchoChamber", description="What's in, what's out."))service
.update_info(ToolkitInfo {
name: "EchoChamber".to_string(),
description: "What's in, what's out.".to_string(),
})
.await
.unwrap();Register Action Handlers
Start the Toolkit
Complete Example
Toolkit Examples
Last updated