Skip to content

Client

relationalai.client.client
Client(core: ClientCore)

Async-first root client.

Use this client when you are already writing async code:

  • construct via await relationalai.client.connect(...) or await from_session(...)
  • close via await client.aclose() or async with ...

Key differences vs ClientSync:

  • .reasoners returns an async ReasonersClient (methods are async def, so you await)

Logging/representation:

  • sensitive fields (config, auth tokens, sessions/transports) are excluded from repr(...)
Client.aclose() -> None

Close the client (best-effort).

Returns:

  • None - Always returns None.
Client.get_reasoners() -> "ReasonersClient"

Return the reasoners service client.

This is the method form of Client.reasoners, provided so reference docs can render an explicit API entry.

Returns:

Client.get_jobs() -> "JobsClient"

Return the jobs service client.

This is the method form of Client.jobs, provided so reference docs can render an explicit API entry.

Returns:

 client
├──  connect
└──  from_session