Skip to main content

Overview

The Python SDK is fully typed with Pydantic models for IDE autocomplete and validation.

Core Types

BudClient

ChatCompletion

Choice

Message

Pipeline Types

Pipeline

PipelineDefinition

Step

RetryConfig

Execution Types

Execution

ExecutionStep

Model Types

Model

ModelSource

Deployment Types

Deployment

AutoScaling

Resources

Cluster Types

Cluster

ClusterHealth

AvailableResources

Exception Types

Generic Types

Response Wrapper

Type Checking

With mypy

Run type checking:

With IDE Autocomplete

Custom Type Annotations

Pydantic Models

Access underlying Pydantic models:

Next Steps

Advanced

Production patterns

Pipeline DSL

Pythonic pipeline builder