Skip to content

Commit 30e642f

Browse files
authored
Refresh generated AI client migration guidance (#10679)
1 parent 3d13d1e commit 30e642f

5 files changed

Lines changed: 54 additions & 46 deletions

‎migration/annotations/effect__ai-anthropic__AnthropicTool.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"@effect/ai-anthropic/AnthropicTool#CodeExecution_20250825":
2+
replacement: "AnthropicTool.CodeExecution_20250825"
3+
note: "The v4 tool accepts code-only, Bash command, and text editor view/create/str_replace payloads. Handle the full parameter union instead of assuming every call has code; CodeExecution_20250825_Parameters describes only the code-only branch. Successes also include plain and encrypted code-execution results, and failures include Bash execution errors."
14
"@effect/ai-anthropic/AnthropicTool#getProviderDefinedToolName":
25
replacement: "Tool.NameMapper"
36
note: "The Anthropic-specific name lookup was removed; v4 provider tools carry custom and provider names through the shared Tool.NameMapper."

‎migration/annotations/effect__ai-anthropic__Generated.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
note: "Still generated in v4 from the current Anthropic specification; re-check the schema's Type/Encoded shape because the generated definition changed."
652652
"@effect/ai-anthropic/Generated#Client":
653653
replacement: "Generated.AnthropicClient"
654-
note: "Regenerated in v4 under this name; update the identifier and re-check the schema's Type/Encoded shape because the generated definition changed."
654+
note: "Renamed to `Generated.AnthropicClient<E, R>`. Endpoint effects include E alongside generated client errors and require R. E defaults to HttpClientError.HttpClientError and R to never; carry custom client error and context types through explicit annotations."
655655
"@effect/ai-anthropic/Generated#ClientError":
656656
replacement: "Generated.AnthropicClientError"
657657
note: "Regenerated in v4 under this name; update the identifier and re-check the schema's Type/Encoded shape because the generated definition changed."
@@ -786,7 +786,7 @@
786786
note: "Still generated in v4 from the current Anthropic specification; re-check the schema's Type/Encoded shape because the generated definition changed."
787787
"@effect/ai-anthropic/Generated#make":
788788
replacement: "Generated.make"
789-
note: "Still generated in v4 from the current Anthropic specification; re-check the schema's Type/Encoded shape because the generated definition changed."
789+
note: "make now infers E and R from `HttpClient.With<E, R>` and returns `Generated.AnthropicClient<E, R>`. Preserve those type parameters in wrappers; endpoint effects include the supplied client error E and require R. transformClient must preserve the same E and R."
790790
"@effect/ai-anthropic/Generated#Message":
791791
replacement: "Generated.Message"
792792
note: "Still generated in v4 from the current Anthropic specification; re-check the schema's Type/Encoded shape because the generated definition changed."

0 commit comments

Comments
 (0)