What problem does it solve?
Understanding the foundational concepts of any SDK can be challenging. This Skill provides a comprehensive guide to the core Kailash SDK, covering essential patterns, best practices, and common pitfalls, enabling you to build robust and efficient workflows from day one.
Core Features & Use Cases
- Workflow Fundamentals: Learn about workflow architecture, nodes, connections, and parameter passing.
- Runtime Execution: Understand synchronous vs. asynchronous execution and how to choose the right runtime.
- Best Practices: Guides on error handling, PythonCodeNode usage, and avoiding common mistakes.
- Use Case: As a new Kailash developer, use this Skill to quickly grasp how to create your first workflow, connect nodes, pass parameters, and execute it, ensuring you follow best practices from the start.
Quick Start
Essential Workflow Pattern
from kailash.workflow.builder import WorkflowBuilder
from kailash.runtime import LocalRuntime
workflow = WorkflowBuilder()
workflow.add_node("PythonCodeNode", "my_node", {"code": "result = 'Hello, Kailash!'"})
runtime = LocalRuntime()
results, run_id = runtime.execute(workflow.build()) # ALWAYS .build()
print(results["my_node"]["result"])