angee.workflows_agents.sessions
Session lifecycle service binding persisted agent chat to workflows.
start_session
python
def start_session(agent: Any, *, owner: Any, context: dict[str, Any]) -> AnyCreate a persisted session and start its seeded workflow run.
post_message
python
def post_message(session: Any, text: str) -> AnyAppend one pending turn and deliver it to the session workflow.
close_session
python
def close_session(session: Any) -> AnyClose a persisted session, expire approvals, and wake its workflow.
close_agent_sessions
python
def close_agent_sessions(agent: Any) -> NoneClose every open persisted session through the lifecycle service.
run_for
python
def run_for(session: Any) -> AnyReturn the one workflow run whose generic subject is session.