()
| 178 | |
| 179 | |
| 180 | async def main() -> None: |
| 181 | aclient = anthropic.AsyncAnthropic( |
| 182 | credentials=WorkloadIdentityCredentials( |
| 183 | identity_token_provider=IdentityTokenFile(), # uses ANTHROPIC_IDENTITY_TOKEN_FILE |
| 184 | federation_rule_id="fdrl_01...", |
| 185 | organization_id="00000000-0000-0000-0000-000000000000", |
| 186 | ), |
| 187 | ) |
| 188 | msg = await aclient.messages.create( |
| 189 | model="claude-opus-5-5", |
| 190 | max_tokens=1024, |
| 191 | messages=[{"role": "user", "content": "Hello"}], |
| 192 | ) |
| 193 | print(msg) |
| 194 | |
| 195 | |
| 196 | # asyncio.run(main()) |
nothing calls this directly
no test coverage detected