Skip to content

Latest commit

Β 

History

History
29 lines (20 loc) Β· 1.55 KB

File metadata and controls

29 lines (20 loc) Β· 1.55 KB

Build AI Actors 🎭

Write Python functions, deploy as Kubernetes actors, chain into meshes.

Getting Started

Build and deploy your first actors:

  • First Actor β€” Build an echo actor, deploy, send a message, verify the result
  • First Actor Mesh β€” Chain two actors via route.next, trace the envelope at each hop
  • First Flow β€” Write a Flow DSL file, compile, inspect generated routers, deploy

Guides

Patterns and techniques for actor development:

  • Handler Patterns β€” Adapter pattern, generator vs function handlers, typed outputs
  • Agentic Patterns β€” Fan-out, dynamic routing, conditional branching, streaming
  • Streaming β€” FLY events, SSE, live progress to gateway clients
  • Actor Flavors β€” Choose and use flavors in actor specs
  • State Proxy β€” Read/write /state/ paths in handlers
  • Pause/Resume β€” Yield SET to x-pause, handle resume input
  • Timeouts β€” Set actorTimeout, understand deadline behavior
  • Error Handling β€” try/except in flows, error routing, finally blocks
  • Compiler Rules β€” Extend the compiler with custom rules for decorators, context managers, and calls

Operations

  • Debugging β€” Trace envelopes by trace_id, curl the runtime, check x-sink/x-sump