Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions google/genai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,28 @@

__version__ = version.__version__

__all__ = ['Client', 'credentials', 'interactions', 'types', 'voices']
__all__ = [
'Client',
'agents',
'credentials',
'environments',
'interactions',
'triggers',
'types',
'voices',
'webhooks',
]


def __getattr__(name: str) -> Any:
if name in ('credentials', 'interactions', 'voices'):
if name in {
'agents',
'credentials',
'environments',
'interactions',
'triggers',
'webhooks',
}:
module = importlib.import_module(f'.{name}', __name__)
globals()[name] = module
return module
Expand Down
55 changes: 55 additions & 0 deletions google/genai/agents.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Expose Google GenAI agent types."""

from ._gaos.models.createagent import (
CreateAgentRequestParam,
)
from ._gaos.models.listagents import (
ListAgentsRequestParam as AgentListParams,
)
from ._gaos.types.agents.agent import (
Agent,
AgentConfig,
AgentConfigParam,
AgentParam,
AgentParam as AgentCreateParams,
BaseEnvironment,
BaseEnvironmentParam,
)
from ._gaos.types.agents.agentlistresponse import (
AgentListResponse,
)
from ._gaos.types.agents.agenttool import (
AgentTool,
AgentToolParam,
)
from ._gaos.types.interactions.empty import Empty as AgentDeleteResponse

__all__ = [
"Agent",
"AgentConfig",
"AgentConfigParam",
"AgentCreateParams",
"AgentDeleteResponse",
"AgentListParams",
"AgentListResponse",
"AgentParam",
"AgentTool",
"AgentToolParam",
"BaseEnvironment",
"BaseEnvironmentParam",
"CreateAgentRequestParam",
]
62 changes: 58 additions & 4 deletions google/genai/credentials.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Google LLC
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,11 +14,48 @@
#
"""Expose Google GenAI credential types."""

from ._gaos.models.listcredentials import ListCredentialsRequestParam as CredentialListParams
from ._gaos.models.listcredentials import (
ListCredentialsRequestParam as CredentialListParams,
)
from ._gaos.types.credentials.credential import Credential
from ._gaos.types.credentials.credentialcreateparams import CredentialCreateParams
from ._gaos.types.credentials.credentiallistresponse import CredentialListResponse
from ._gaos.types.credentials.credentialupdate import CredentialUpdateParam as CredentialUpdateParams
from ._gaos.types.credentials.credentiallistresponse import (
CredentialListResponse,
)
from ._gaos.types.credentials.credentialupdate import (
CredentialUpdateParam as CredentialUpdateParams,
)
from ._gaos.types.credentials.environmentvariableconfig import (
EnvironmentVariableConfig,
EnvironmentVariableConfigInjectionLocation,
EnvironmentVariableConfigInjectionLocationParam,
EnvironmentVariableConfigParam,
)
from ._gaos.types.credentials.environmentvariableupdateconfig import (
EnvironmentVariableUpdateConfig,
EnvironmentVariableUpdateConfigInjectionLocation,
EnvironmentVariableUpdateConfigInjectionLocationParam,
EnvironmentVariableUpdateConfigParam,
)
from ._gaos.types.credentials.httpbearerconfig import (
HTTPBearerConfig,
HTTPBearerConfigParam,
)
from ._gaos.types.credentials.httpbearerupdateconfig import (
HTTPBearerUpdateConfig,
HTTPBearerUpdateConfigParam,
)
from ._gaos.types.credentials.injectionlocation_enum import (
InjectionLocationEnum,
)
from ._gaos.types.credentials.oauth2config import (
OAuth2Config,
OAuth2ConfigParam,
)
from ._gaos.types.credentials.oauth2updateconfig import (
OAuth2UpdateConfig,
OAuth2UpdateConfigParam,
)
from ._gaos.types.interactions.empty import Empty as CredentialDeleteResponse

__all__ = [
Expand All @@ -28,4 +65,21 @@
"CredentialListParams",
"CredentialListResponse",
"CredentialUpdateParams",
"EnvironmentVariableConfig",
"EnvironmentVariableConfigInjectionLocation",
"EnvironmentVariableConfigInjectionLocationParam",
"EnvironmentVariableConfigParam",
"EnvironmentVariableUpdateConfig",
"EnvironmentVariableUpdateConfigInjectionLocation",
"EnvironmentVariableUpdateConfigInjectionLocationParam",
"EnvironmentVariableUpdateConfigParam",
"HTTPBearerConfig",
"HTTPBearerConfigParam",
"HTTPBearerUpdateConfig",
"HTTPBearerUpdateConfigParam",
"InjectionLocationEnum",
"OAuth2Config",
"OAuth2ConfigParam",
"OAuth2UpdateConfig",
"OAuth2UpdateConfigParam",
]
71 changes: 71 additions & 0 deletions google/genai/environments.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Expose Google GenAI environment types."""

from ._gaos.models.listenvironments import (
ListEnvironmentsRequestParam as EnvironmentListParams,
)
from ._gaos.types.environments.createenvironmentrequest import (
CreateEnvironmentRequest,
CreateEnvironmentRequestNetworkEnum,
CreateEnvironmentRequestNetworkUnion,
CreateEnvironmentRequestNetworkUnionParam,
CreateEnvironmentRequestParam,
CreateEnvironmentRequestParam as EnvironmentCreateParams,
)
from ._gaos.types.environments.environment import (
Environment,
EnvironmentNetworkEnum,
EnvironmentNetworkUnion,
EnvironmentNetworkUnionTypedDict,
Status,
Status as EnvironmentStatus,
)
from ._gaos.types.environments.environmentfile import (
EnvironmentFile,
Type,
Type as EnvironmentFileType,
)
from ._gaos.types.environments.getenvironmentfilesresponse import (
GetEnvironmentFilesResponse,
)
from ._gaos.types.environments.listenvironmentsresponse import (
ListEnvironmentsResponse,
ListEnvironmentsResponse as EnvironmentListResponse,
)
from ._gaos.types.interactions.empty import Empty as EnvironmentDeleteResponse

__all__ = [
"CreateEnvironmentRequest",
"CreateEnvironmentRequestNetworkEnum",
"CreateEnvironmentRequestNetworkUnion",
"CreateEnvironmentRequestNetworkUnionParam",
"CreateEnvironmentRequestParam",
"Environment",
"EnvironmentCreateParams",
"EnvironmentDeleteResponse",
"EnvironmentFile",
"EnvironmentFileType",
"EnvironmentListParams",
"EnvironmentListResponse",
"EnvironmentNetworkEnum",
"EnvironmentNetworkUnion",
"EnvironmentNetworkUnionTypedDict",
"EnvironmentStatus",
"GetEnvironmentFilesResponse",
"ListEnvironmentsResponse",
"Status",
"Type",
]
77 changes: 77 additions & 0 deletions google/genai/triggers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Expose Google GenAI trigger types."""

from ._gaos.models.listtriggerexecutions import (
ListTriggerExecutionsRequestParam as TriggerListExecutionsParams,
)
from ._gaos.models.listtriggers import (
ListTriggersRequestParam as TriggerListParams,
)
from ._gaos.models.updatetrigger import (
UpdateTriggerRequestParam,
)
from ._gaos.types.interactions.empty import Empty as TriggerDeleteResponse
from ._gaos.types.triggers.listtriggerexecutionsresponse import (
ListTriggerExecutionsResponse,
ListTriggerExecutionsResponse as TriggerListExecutionsResponse,
)
from ._gaos.types.triggers.listtriggersresponse import (
ListTriggersResponse,
ListTriggersResponse as TriggerListResponse,
)
from ._gaos.types.triggers.trigger import (
Trigger,
TriggerStatus,
)
from ._gaos.types.triggers.triggercreateparams import (
Interaction,
InteractionParam,
TriggerCreateParams,
TriggerCreateParamsParam,
)
from ._gaos.types.triggers.triggerexecution import (
TriggerExecution,
TriggerExecutionStatus,
)
from ._gaos.types.triggers.triggerupdate import (
TriggerUpdate,
TriggerUpdateParam,
TriggerUpdateParam as TriggerUpdateParams,
TriggerUpdateStatus,
)

__all__ = [
"Interaction",
"InteractionParam",
"ListTriggerExecutionsResponse",
"ListTriggersResponse",
"Trigger",
"TriggerCreateParams",
"TriggerCreateParamsParam",
"TriggerDeleteResponse",
"TriggerExecution",
"TriggerExecutionStatus",
"TriggerListExecutionsParams",
"TriggerListExecutionsResponse",
"TriggerListParams",
"TriggerListResponse",
"TriggerStatus",
"TriggerUpdate",
"TriggerUpdateParam",
"TriggerUpdateParams",
"TriggerUpdateStatus",
"UpdateTriggerRequestParam",
]
Loading
Loading