Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.79 KB

File metadata and controls

59 lines (38 loc) · 1.79 KB

Agent Builder Types

Type annotations (PEP 561 stubs) for the boto3 client of the AWS Transform Agentic service.

Install this alongside boto3 and your type checker (mypy, pyright, Pylance) and IDE will give you full autocomplete and type checking on calls to the AWS Transform Agentic service client — method signatures, request/response shapes, and paginators.

Installation

pip install agent-builder-types-aws-transform

Usage

No import or code change required. Once installed, your type checker picks up the stubs automatically:

import boto3

# Your IDE now knows the full shape of this client.
client = boto3.client("transformagenticservice")

# Autocomplete works on method names and arguments.
response = client.list_agents(...)

For explicit annotations, you can import type defs directly:

from agent_builder_types import TransformAgenticServiceClient
from agent_builder_types.type_defs import GetAgentInstanceResponseTypeDef

client: TransformAgenticServiceClient = boto3.client("transformagenticservice")
response: GetAgentInstanceResponseTypeDef = client.get_agent_instance(...)

Regenerating stubs

If the service model (service-2.json) is updated, regenerate stubs:

pip install mypy-boto3-builder
python scripts/generate_stubs.py --model ../sdk/src/agent_builder_sdk/botocore_models/transformagenticservice/2018-05-10/service-2.json

Validate that current stubs match the model (useful in CI):

python scripts/generate_stubs.py --model ../sdk/src/agent_builder_sdk/botocore_models/transformagenticservice/2018-05-10/service-2.json --validate

Requirements

  • Python 3.11+
  • boto3 >= 1.28

License

Apache-2.0. See LICENSE and THIRD-PARTY-NOTICES.txt.