The ADK (Agent Development Kit) provider enables AI-powered workflow generation using advanced language models. It’s the first official provider for the Kubiya Workflow SDK.
What is ADK Provider?
The ADK provider integrates Google’s Agent Development Kit with the Kubiya Workflow SDK to enable:- Natural Language to Workflow: Describe what you want in plain English
- Intelligent Code Generation: AI writes the workflow code for you
- Automatic Validation: Ensures generated workflows are syntactically correct
- Smart Refinement: Automatically fixes errors through iterative improvement
- Production Ready: Generated workflows are optimized for production use
Plan Mode
Generate workflows without executing them
Act Mode
Generate and immediately execute workflows
Prerequisites
1
Install SDK with ADK
2
Get API Keys
You’ll need:
- Kubiya API Key: From compose.kubiya.ai
- Together AI Key: From together.ai (default)
- Google AI Key (optional): For Google models
3
Set Environment Variables
Quick Example
Generate a Simple Workflow
Generate and Execute
How It Works
1
Context Loading
The ADK provider first loads context about your Kubiya environment:
- Available runners and their capabilities
- Installed integrations (Slack, AWS, etc.)
- Accessible secrets and resources
2
Workflow Generation
Using advanced AI models (DeepSeek V3 by default), it generates:
- Complete workflow structure
- Appropriate steps with dependencies
- Error handling and retries
- Integration with platform features
3
Validation & Refinement
The generated code is:
- Compiled to check syntax
- Validated against SDK requirements
- Refined if errors are found
- Optimized for production use
4
Execution (Act Mode)
If requested, the workflow is:
- Submitted to Kubiya platform
- Executed with real-time streaming
- Monitored for completion
Advanced Examples
Complex Multi-Step Workflow
Infrastructure Automation
Incident Response
Streaming Formats
The ADK provider supports multiple streaming formats:Compatible with Vercel’s AI SDK format:
Configuration Options
Model Selection
Model Selection
Choose different models for different tasks:
Execution Settings
Execution Settings
Control execution behavior:
Custom Context
Custom Context
Provide additional context:
Best Practices
Be Specific
The more specific your task description, the better the generated workflow
Include Examples
Provide example commands or expected outputs when relevant
Specify Requirements
Mention specific tools, integrations, or constraints
Iterate
Use plan mode first, review, then execute
Troubleshooting
API Key Errors
API Key Errors
Ensure all required API keys are set:
Generation Timeouts
Generation Timeouts
For complex workflows, increase timeout:
Model Errors
Model Errors
If models fail, try different providers: