Skip to main content

STAN

STAN: workflow-builder assistant sessions.

Access it as client.stan on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.

Methods

All methods

create_session

create_session(*, model_id: str, active_workflow_id: Optional[str] = None, active_workflow_name: Optional[str] = None) -> Dict[str, Any]

Start a new STAN assistant session and return its initial state.

Args: model_id: Id of the model STAN should use (required). active_workflow_id: Workflow the session opens against. active_workflow_name: Display name of that workflow.

end_session

end_session(session_id: str) -> None

End a STAN session. Raises on failure; returns nothing.

retrieve_session

retrieve_session(session_id: str) -> Dict[str, Any]

Retrieve the current state of a STAN session.

send_message

send_message(session_id: str, *, message: str) -> Dict[str, Any]

Send a message to a STAN session and return STAN's response turn.

Args: session_id: Target session id. message: The user message to send (required).