Console ↗

Asynchronous client

Await system_one_async inside an event loop. The adapter delegates blocking I/O to a worker thread; cancellation of the awaiting task does not cancel processing on the model host.

Example

async def evaluate(client, state, questions):
    result = await client.system_one_async(state, questions)
    return result["answers"]

System One endpoint · Request rules and errors