Skip to main content

io.enterpriseai.resources.LlmClient

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/resources/LlmClient.java. Back to the Java SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class LlmClient​

LLM tenant isolation settings.

Constructor LlmClient​

LlmClient(Transport transport)

Creates the client on the shared transport; EnterpriseAIClient builds it and exposes it through the accessor of the same name.

NameTypeDefaultRequiredDescription
transportTransportyesTransport shared by the sub-clients of one client.

LlmClient.isolation​

JsonNode isolation()

Read the isolation mode. Effective isolation mode for the tenant or one of its projects: the project setting when present, else the tenant setting, else connected, with the declared internal hosts. Requires a tenant principal (400 tenant_required) with tenant_admin, platform_admin, security_officer, finops, developer, auditor or viewer.

Route: /v1/llm/isolation (GET).

This element takes no parameter.

Returns: JsonNode. Decoded JSON answer of the operation "Read the isolation mode".

Raises: the typed errors of the transport (Errors).

LlmClient.isolation​

JsonNode isolation(Map<String, ?> query)

Read the isolation mode. Effective isolation mode for the tenant or one of its projects: the project setting when present, else the tenant setting, else connected, with the declared internal hosts. Requires a tenant principal (400 tenant_required) with tenant_admin, platform_admin, security_officer, finops, developer, auditor or viewer.

Route: /v1/llm/isolation (GET).

NameTypeDefaultRequiredDescription
queryMap<String, ?>yesQuery string parameters of the route.

Returns: JsonNode. Decoded JSON answer of the operation "Read the isolation mode".

Raises: the typed errors of the transport (Errors).

LlmClient.setIsolation​

JsonNode setIsolation(Object body)

Set the isolation mode. Sets the isolation mode of the tenant or of one project. In local_only or air_gapped, only local providers (vLLM, Ollama, LM Studio) and the declared internal hosts are reachable: an external route is refused in preflight (403 isolation_external_route) and the outbound call is checked again (403 isolation_egress_denied). Audited (llm.isolation.set). Requires a tenant principal with tenant_admin, platform_admin or security_officer.

Route: /v1/llm/isolation (PUT).

NameTypeDefaultRequiredDescription
bodyObjectyesmode (connected, local_only or air_gapped), optional project_id (empty for the whole tenant) and internal_hosts (host names, optionally with a port, lowercase letters, digits, dots and dashes).

Returns: JsonNode. Decoded JSON answer of the operation "Set the isolation mode".

Raises: the typed errors of the transport (Errors).

LlmClient.setIsolation​

JsonNode setIsolation(Object body, RequestOptions options)

Set the isolation mode. Sets the isolation mode of the tenant or of one project. In local_only or air_gapped, only local providers (vLLM, Ollama, LM Studio) and the declared internal hosts are reachable: an external route is refused in preflight (403 isolation_external_route) and the outbound call is checked again (403 isolation_egress_denied). Audited (llm.isolation.set). Requires a tenant principal with tenant_admin, platform_admin or security_officer.

Route: /v1/llm/isolation (PUT).

NameTypeDefaultRequiredDescription
bodyObjectyesmode (connected, local_only or air_gapped), optional project_id (empty for the whole tenant) and internal_hosts (host names, optionally with a port, lowercase letters, digits, dots and dashes).
optionsRequestOptionsyesPer call options (idempotency key, traceparent, headers, abort signal).

Returns: JsonNode. Decoded JSON answer of the operation "Set the isolation mode".

Raises: the typed errors of the transport (Errors).