@effect/ai-anthropic 4.0.0-beta.85 → 4.0.0-beta.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/ai-anthropic",
3
- "version": "4.0.0-beta.85",
3
+ "version": "4.0.0-beta.86",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "An Anthropic provider integration for Effect AI SDK",
@@ -43,10 +43,10 @@
43
43
  "provenance": true
44
44
  },
45
45
  "devDependencies": {
46
- "effect": "^4.0.0-beta.85"
46
+ "effect": "^4.0.0-beta.86"
47
47
  },
48
48
  "peerDependencies": {
49
- "effect": "^4.0.0-beta.85"
49
+ "effect": "^4.0.0-beta.86"
50
50
  },
51
51
  "scripts": {
52
52
  "codegen": "effect-utils codegen",
@@ -3106,13 +3106,13 @@ const unsupportedSchemaError = (error: unknown, method: string): AiError.AiError
3106
3106
  })
3107
3107
  })
3108
3108
 
3109
- const tryCodecTransform = <S extends Schema.Top>(schema: S, method: string) =>
3109
+ const tryCodecTransform = <S extends Schema.Constraint>(schema: S, method: string) =>
3110
3110
  Effect.try({
3111
3111
  try: () => toCodecAnthropic(schema),
3112
3112
  catch: (error) => unsupportedSchemaError(error, method)
3113
3113
  })
3114
3114
 
3115
- const tryJsonSchema = <S extends Schema.Top>(schema: S, method: string) =>
3115
+ const tryJsonSchema = <S extends Schema.Constraint>(schema: S, method: string) =>
3116
3116
  Effect.try({
3117
3117
  try: () => Tool.getJsonSchemaFromSchema(schema, { transformer: toCodecAnthropic }),
3118
3118
  catch: (error) => unsupportedSchemaError(error, method)
package/src/Generated.ts CHANGED
@@ -11088,10 +11088,10 @@ export const make = (
11088
11088
  Stream.unwrap
11089
11089
  )
11090
11090
  const decodeSuccess =
11091
- <Schema extends Schema.Top>(schema: Schema) => (response: HttpClientResponse.HttpClientResponse) =>
11091
+ <Schema extends Schema.Constraint>(schema: Schema) => (response: HttpClientResponse.HttpClientResponse) =>
11092
11092
  HttpClientResponse.schemaBodyJson(schema)(response)
11093
11093
  const decodeError =
11094
- <const Tag extends string, Schema extends Schema.Top>(tag: Tag, schema: Schema) =>
11094
+ <const Tag extends string, Schema extends Schema.Constraint>(tag: Tag, schema: Schema) =>
11095
11095
  (response: HttpClientResponse.HttpClientResponse) =>
11096
11096
  Effect.flatMap(
11097
11097
  HttpClientResponse.schemaBodyJson(schema)(response),