lt.workflowSets
lt.workflowSets manages workflow sets: groups of related workflows that an LLM planner drafts from a specification, then builds and deploys together.
create
Section titled “create”const result = await lt.workflowSets.create({ name: 'onboarding-pipeline', specification: 'A multi-step onboarding pipeline that verifies email, provisions accounts, and sends a welcome message',});Create a workflow set and start the planner.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes | Unique set name |
description |
string |
No | Description |
specification |
string |
Yes | Free-text specification the planner works from |
Returns: LTApiResult<{ ...WorkflowSet, source_workflow_id: string, planner_workflow_id: string }>
Auth: Optional. The userId is forwarded to the planner when provided.
const result = await lt.workflowSets.list({ status: 'planned', limit: 10 });List workflow sets with filtering and pagination.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
status |
string |
No | Filter by status |
search |
string |
No | Free-text search across names and descriptions |
limit |
number |
No | Max results |
offset |
number |
No | Pagination offset |
Returns: LTApiResult<{ sets: WorkflowSet[], total: number }>
Auth: Not required.
const result = await lt.workflowSets.get({ id: 'set-id' });Get one workflow set by ID.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | Set ID |
Returns: LTApiResult<WorkflowSet>
Auth: Not required.
updatePlan
Section titled “updatePlan”const result = await lt.workflowSets.updatePlan({ id: 'set-id', plan: [{ name: 'step1', description: 'Verify email' }], namespaces: [{ name: 'onboarding', description: 'Onboarding namespace' }],});Replace a set’s plan and, optionally, its namespaces.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | Set ID |
plan |
any[] |
Yes | Plan entries |
namespaces |
any[] |
No | Namespace definitions for the plan |
Returns: LTApiResult<WorkflowSet>
Auth: Not required.
const result = await lt.workflowSets.build({ id: 'set-id' });Move a set from planned to building.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | Set ID |
Returns: LTApiResult<{ status: 'building', id: string }>
Auth: Not required.
deploy
Section titled “deploy”const result = await lt.workflowSets.deploy({ id: 'set-id' });Move a set to deploying.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | Set ID |
Returns: LTApiResult<{ status: 'deploying', id: string }>
Auth: Not required.
