Skip to content
SupportLogin
Stacks

Stacks

Create a stack
stacks.create(StackCreateParams**kwargs) -> Stack
POST/api/v1/stacks
List stacks
stacks.list(StackListParams**kwargs) -> SyncCursorAfter[Stack]
GET/api/v1/stacks
Retrieve a stack
stacks.get(strstack_id) -> Stack
GET/api/v1/stacks/{stack_id}
Update a stack
stacks.update(strstack_id, StackUpdateParams**kwargs) -> Stack
PATCH/api/v1/stacks/{stack_id}
Delete a stack
stacks.delete(strstack_id) -> StackDeleteResponse
DELETE/api/v1/stacks/{stack_id}
ModelsExpand Collapse
class Stack: …
id: str
formatuuid
object: Literal["stack"]
name: str

Display name. The stack is called through model_id, which is derived from the name, so renaming a stack changes its model_id.

model_id: str

What to pass as model to POST /responses to call the stack. Use it as is.

status: Literal["draft", "active", "inactive"]

active serves requests, inactive keeps its configuration but refuses them. draft is a stack started in the dashboard whose configuration is not finished.

One of the following:
"draft"
"active"
"inactive"
model: Optional[str]

The model the stack serves. Null only for a draft without one yet.

tools: List[StackTool]
server_label: str
status: Literal["enabled", "needs_connection", "unavailable"]

enabled runs on requests to the stack. needs_connection waits for you to connect the account the tool acts as. unavailable is not available to you, e.g. not on your plan.

One of the following:
"enabled"
"needs_connection"
"unavailable"
agentic_memory: bool

Whether requests to the stack use agentic memory unless they set it themselves. Teams with zero data retention cannot turn it on.

self_improvement: bool

Whether requests to the stack use self-improvement unless they set it themselves.

created_at: datetime
formatdate-time
updated_at: datetime
formatdate-time
class StackTool: …
server_label: str
status: Literal["enabled", "needs_connection", "unavailable"]

enabled runs on requests to the stack. needs_connection waits for you to connect the account the tool acts as. unavailable is not available to you, e.g. not on your plan.

One of the following:
"enabled"
"needs_connection"
"unavailable"
class StackDeleteResponse: …
id: str
formatuuid
object: Literal["stack.deleted"]
deleted: bool

Always true.