Skip to main content

enterprise_ai.client

Source: sdks/python/src/enterprise_ai/client.py. Back to the Python 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 EnterpriseAI​

Synchronous client.

_ClientBase

Attributes:

NameTypeRequiredDescription
a2aA2AClientyesAgent to agent messaging with a versioned envelope.
agentsAgentsClientyes/v1/agents.
applicationsApplicationsClientyes/v1/applications.
approvalsApprovalsClientyes/v1/approvals.
auditAuditClientyes/v1/audit.
authzAuthzClientyes/v1/authz/check (OpenFGA, relation checks) and /v1/policies/evaluate (OPA, explained decision).
break_glassBreakGlassClientyes/v1/break-glass: audited emergency grants with a short lifetime.
business_unitsBusinessUnitsClientyes/v1/business-units: business units of an organization, optionally nested (tenant hierarchy).
channelsChannelsClientyes/v1/channels.
complianceComplianceClientyes/v1/compliance/instances.
configyesResolved connection settings (ClientConfig) shared by every sub-client.
connectorsConnectorsClientyes/v1/connectors, /v1/credentials/broker/lease, /v1/webhooks.
contextContextClientyes/v1/context/plan: server side budget and compression plan.
contractsContractsClientyes/v1/contracts: the server side copy of the schemas and remote validation.
delegationsDelegationsClientyes/v1/delegations: scoped, time bound delegations between principals.
dlpDlpClientyes/v1/dlp.
encryptionEncryptionClientyes/v1/encryption.
evaluationEvaluationClientyes/v1/evaluations and /v1/redteam.
evidenceEvidenceClientyes/v1/evidence.
execution_contextExecutionContextClientyes/v1/context: signed execution contexts and their signing keys.
file_securityFileSecurityClientyes/v1/file-security: engine status, tenant policy, explicit scans, rescans, sample purge and stats.
finopsFinopsClientyes/v1/finops.
gatewayGatewayClientyes/v1/gateway/*.
governanceGovernanceClientyes/v1/governance/registry: agents, models, tools, owners and risk in one view.
identityIdentityClientyes/v1/me, /v1/members, /v1/api-keys, /v1/service-identities, /v1/authz, /v1/secrets, /v1/identity/quota-profiles and /v1/identity/group-mappings.
incidentsIncidentsClientyes/v1/incidents and response actions (suspend agent/model/provider, rotate key).
isolationIsolationClientyes/v1/llm/isolation.
licenseLicenseClientyes/v1/license.
llmLlmClientyesOne entry point over /v1/gateway/chat/completions, /v1/gateway/embeddings and /v1/multimodal/vision; every call keeps the gateway checks (effort precheck, policy, DLP, quotas).
llm_managementLlmManagementClientyes/v1/llm/projects (LiteLLM teams) and /v1/llm/projects/{project_id}/keys (LiteLLM virtual keys).
mandatesMandatesClientyes/v1/mandates: standing mandates of autonomous agents (scheduled work).
manifestsManifestsClientyes/v1/manifests: apply any manifest kind and export registry entries as manifests.
marketplaceMarketplaceClientyes/v1/marketplace.
mcpMcpClientyes/v1/mcp.
mcp_runtimeMcpRuntimeClientyes/v1/projects/{project_id}/mcp/instances, /v1/projects/{project_id}/mcp/policy, /v1/mcp/runtime/jwks.
memoryMemoryClientyes/v1/memory.
modelsModelsClientyes/v1/models, /v1/llm/categories, /v1/litellm.
multimodalMultimodalClientyes/v1/media and /v1/multimodal/*; modality helpers are attributes.
navin_libraryNavinLibraryClientyes/v1/navin-library and /v1/projects/{id}/navin-library, /v1/projects/{id}/rules.
organizationsOrganizationsClientyes/v1/organizations: organizations of the tenant (tenant hierarchy, ADR-0156).
platform_managerPlatformManagerClientyes/v1/platform-manager.
pluginsPluginsClientyes/v1/plugins.
policiesPoliciesClientyes/v1/policies.
privacyPrivacyClientyes/v1/privacy, /v1/retention, /v1/lineage.
projectsProjectsClientyes/v1/projects and project environments.
promptsPromptsClientyes/v1/prompts.
providersProvidersClientyes/v1/providers and /v1/adapters.
quotasQuotasClientyes/v1/quotas.
ragRagClientyes/v1/knowledge-bases.
rag_agentRagAgentClientyes/v1/rag-agent/instances.
realtimeRealtimeClientyes/v1/realtime.
riskRiskClientyes/v1/risk: assessments, controls, exceptions, evidence.
routesRoutesClientyes/v1/routes.
runsRunsClientyes/v1/runs, /v1/checkpoints, /v1/heartbeats.
sandboxSandboxClientyes/v1/sandbox/executions.
schedulesSchedulesClientyes/v1/schedules.
securitySecurityClientyes/v1/security/posture and /v1/security/settings.
sessionsSessionsClientyes/v1/sessions and their messages.
skillsSkillsClientyes/v1/skills.
socSocClientyes/v1/soc.
storageStorageClientyes/v1/storage.
systemSystemClientyesPlatform level read endpoints (no tenant data).
telemetryTelemetryClientyes/v1/telemetry.
telephonyTelephonyClientyes/v1/telephony: settings, quotas, PBX pools, SIP trunks, numbers, extensions, routing, IVR, queues, agents, AI voice agents, conferences, publication, calls, recordings, voicemail, prompts, fraud and infrastructure.
tenantsTenantsClientyes/v1/tenants.
tokenizationTokenizationClientyes/v1/tokenization (policy checked and audited server side).
toolsToolsClientyes/v1/tools: registry and Tool Gateway (scopes, policy, DLP, approval, cost).
triggersTriggersClientyes/v1/triggers and /v1/events/publish (NATS subjects).

Constructor EnterpriseAI​

EnterpriseAI(base_url: str | None = None, http_client: httpx.Client | None = None, transport: httpx.BaseTransport | None = None, **kwargs: Any) -> None

Build the configuration from the arguments and the EAI_* variables, then wire every sub-client on a SyncTransport.

NameTypeDefaultRequiredDescription
base_urlstr | NoneNonenoAddress of the API; None falls back to EAI_BASE_URL, then to a local address.
http_clienthttpx.Client | NoneNonenoExisting httpx.Client to send the requests; by default one is created from the configuration.
transporthttpx.BaseTransport | NoneNonenoTransport shared by the sub-clients of one client.
**kwargsAnynoFields of ClientConfig (api_key, token, tenant, locale, timeout, retries...); any other key is passed to httpx.Client.

EnterpriseAI.close​

close() -> None

Close the transport and its HTTP connections; also called at the end of a with block.

This element takes no parameter.

Returns: None.

Class AsyncEnterpriseAI​

Asynchronous client: every sub-client method returns an awaitable.

_ClientBase

Attributes:

NameTypeRequiredDescription
a2aA2AClientyesAgent to agent messaging with a versioned envelope.
agentsAgentsClientyes/v1/agents.
applicationsApplicationsClientyes/v1/applications.
approvalsApprovalsClientyes/v1/approvals.
auditAuditClientyes/v1/audit.
authzAuthzClientyes/v1/authz/check (OpenFGA, relation checks) and /v1/policies/evaluate (OPA, explained decision).
break_glassBreakGlassClientyes/v1/break-glass: audited emergency grants with a short lifetime.
business_unitsBusinessUnitsClientyes/v1/business-units: business units of an organization, optionally nested (tenant hierarchy).
channelsChannelsClientyes/v1/channels.
complianceComplianceClientyes/v1/compliance/instances.
configyesResolved connection settings (ClientConfig) shared by every sub-client.
connectorsConnectorsClientyes/v1/connectors, /v1/credentials/broker/lease, /v1/webhooks.
contextContextClientyes/v1/context/plan: server side budget and compression plan.
contractsContractsClientyes/v1/contracts: the server side copy of the schemas and remote validation.
delegationsDelegationsClientyes/v1/delegations: scoped, time bound delegations between principals.
dlpDlpClientyes/v1/dlp.
encryptionEncryptionClientyes/v1/encryption.
evaluationEvaluationClientyes/v1/evaluations and /v1/redteam.
evidenceEvidenceClientyes/v1/evidence.
execution_contextExecutionContextClientyes/v1/context: signed execution contexts and their signing keys.
file_securityFileSecurityClientyes/v1/file-security: engine status, tenant policy, explicit scans, rescans, sample purge and stats.
finopsFinopsClientyes/v1/finops.
gatewayAsyncGatewayClientyesAsync gateway: the effort pre-check awaits the registry lookup.
governanceGovernanceClientyes/v1/governance/registry: agents, models, tools, owners and risk in one view.
identityIdentityClientyes/v1/me, /v1/members, /v1/api-keys, /v1/service-identities, /v1/authz, /v1/secrets, /v1/identity/quota-profiles and /v1/identity/group-mappings.
incidentsIncidentsClientyes/v1/incidents and response actions (suspend agent/model/provider, rotate key).
isolationIsolationClientyes/v1/llm/isolation.
licenseLicenseClientyes/v1/license.
llmLlmClientyesOne entry point over /v1/gateway/chat/completions, /v1/gateway/embeddings and /v1/multimodal/vision; every call keeps the gateway checks (effort precheck, policy, DLP, quotas).
llm_managementLlmManagementClientyes/v1/llm/projects (LiteLLM teams) and /v1/llm/projects/{project_id}/keys (LiteLLM virtual keys).
mandatesMandatesClientyes/v1/mandates: standing mandates of autonomous agents (scheduled work).
manifestsManifestsClientyes/v1/manifests: apply any manifest kind and export registry entries as manifests.
marketplaceMarketplaceClientyes/v1/marketplace.
mcpMcpClientyes/v1/mcp.
mcp_runtimeMcpRuntimeClientyes/v1/projects/{project_id}/mcp/instances, /v1/projects/{project_id}/mcp/policy, /v1/mcp/runtime/jwks.
memoryMemoryClientyes/v1/memory.
modelsModelsClientyes/v1/models, /v1/llm/categories, /v1/litellm.
multimodalMultimodalClientyes/v1/media and /v1/multimodal/*; modality helpers are attributes.
navin_libraryNavinLibraryClientyes/v1/navin-library and /v1/projects/{id}/navin-library, /v1/projects/{id}/rules.
organizationsOrganizationsClientyes/v1/organizations: organizations of the tenant (tenant hierarchy, ADR-0156).
platform_managerPlatformManagerClientyes/v1/platform-manager.
pluginsPluginsClientyes/v1/plugins.
policiesPoliciesClientyes/v1/policies.
privacyPrivacyClientyes/v1/privacy, /v1/retention, /v1/lineage.
projectsProjectsClientyes/v1/projects and project environments.
promptsPromptsClientyes/v1/prompts.
providersProvidersClientyes/v1/providers and /v1/adapters.
quotasQuotasClientyes/v1/quotas.
ragRagClientyes/v1/knowledge-bases.
rag_agentRagAgentClientyes/v1/rag-agent/instances.
realtimeRealtimeClientyes/v1/realtime.
riskRiskClientyes/v1/risk: assessments, controls, exceptions, evidence.
routesRoutesClientyes/v1/routes.
runsRunsClientyes/v1/runs, /v1/checkpoints, /v1/heartbeats.
sandboxSandboxClientyes/v1/sandbox/executions.
schedulesSchedulesClientyes/v1/schedules.
securitySecurityClientyes/v1/security/posture and /v1/security/settings.
sessionsSessionsClientyes/v1/sessions and their messages.
skillsSkillsClientyes/v1/skills.
socSocClientyes/v1/soc.
storageStorageClientyes/v1/storage.
systemSystemClientyesPlatform level read endpoints (no tenant data).
telemetryTelemetryClientyes/v1/telemetry.
telephonyTelephonyClientyes/v1/telephony: settings, quotas, PBX pools, SIP trunks, numbers, extensions, routing, IVR, queues, agents, AI voice agents, conferences, publication, calls, recordings, voicemail, prompts, fraud and infrastructure.
tenantsTenantsClientyes/v1/tenants.
tokenizationTokenizationClientyes/v1/tokenization (policy checked and audited server side).
toolsToolsClientyes/v1/tools: registry and Tool Gateway (scopes, policy, DLP, approval, cost).
triggersTriggersClientyes/v1/triggers and /v1/events/publish (NATS subjects).

Constructor AsyncEnterpriseAI​

AsyncEnterpriseAI(base_url: str | None = None, http_client: httpx.AsyncClient | None = None, transport: httpx.AsyncBaseTransport | None = None, **kwargs: Any) -> None

Build the configuration from the arguments and the EAI_* variables, then wire every sub-client on an AsyncTransport.

NameTypeDefaultRequiredDescription
base_urlstr | NoneNonenoAddress of the API; None falls back to EAI_BASE_URL, then to a local address.
http_clienthttpx.AsyncClient | NoneNonenoExisting httpx.AsyncClient to send the requests; by default one is created from the configuration.
transporthttpx.AsyncBaseTransport | NoneNonenoTransport shared by the sub-clients of one client.
**kwargsAnynoFields of ClientConfig (api_key, token, tenant, locale, timeout, retries...); any other key is passed to httpx.AsyncClient.

AsyncEnterpriseAI.close​

async close() -> None

Close the transport and its HTTP connections (a coroutine); also called by async with.

This element takes no parameter.

Returns: None.