Commit 04756b8
fix(sdk-python): use AsyncConfig.from_environment() for client default async config (#714)
AgentFieldClient constructed its default async_config with AsyncConfig(),
ignoring AGENTFIELD_ASYNC_* environment overrides that Agent already honors.
Initialize the default from AsyncConfig.from_environment() so client-level
async behavior can be tuned via env vars, while preserving any explicitly
passed async_config unchanged. Adds regression coverage for both paths.
Fixes #621. Supersedes #632 (original change by liuzemei / neooosky);
re-authored here so it can land without the outstanding CLA signature.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1a192cf commit 04756b8
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments