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: str | None = None, active_workflow_name: str | None = None) -> dict[str, Any]

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

Parameters

  • model_id (str): Id of the model STAN should use (required).
  • active_workflow_id (str | None, optional): Workflow the session opens against.
  • active_workflow_name (str | None, optional): 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.

Parameters

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