ClientSync
relationalai.client.client_sync
ClientSync(core: ClientCore)Synchronous root client.
Use this client from synchronous applications/scripts:
- construct via
relationalai.client.connect_sync(...)orfrom_session_sync(...) - close via
client.close()orwith ...
Key differences vs Client (async):
.reasonersreturns a synchronousReasonersClientSync(blocking methods)- sync entrypoints guard against being called inside a running event loop
(use
await connect(...)from async code instead)
Logging/representation:
- sensitive fields (config, auth tokens, sessions/transports) are excluded from
repr(...)
Methods
Section titled “Methods”.close()
Section titled “.close()”ClientSync.close() -> NoneClose the client (best-effort).
Returns:
None- Always returnsNone.
.get_reasoners()
Section titled “.get_reasoners()”ClientSync.get_reasoners() -> "ReasonersClientSync"Return the reasoners service client.
This is the method form of ClientSync.reasoners, provided so reference docs can
render an explicit API entry.
Returns:
ReasonersClientSync- A cached synchronous reasoners client.
.get_jobs()
Section titled “.get_jobs()”ClientSync.get_jobs() -> "JobsClientSync"Return the jobs service client.
This is the method form of ClientSync.jobs, provided so reference docs can
render an explicit API entry.
Returns:
JobsClientSync- A cached synchronous jobs client.
Returned By
Section titled “Returned By”client ├── connect_sync └── from_session_sync