Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 15:45 UTC
feat: add response error and request union changelog
shreysingla11 committed
Jan 7, 2026 at 16:20 UTC
904f86fbce8516d1c18e176035e622b02e89b54b
1 file changed
+48
-18
fern/pages/src/changelog/01-07-26.md
+48
-18
@@ -41,24 +41,24 @@ All error responses from tool execution now include:
41
42
---
43
44
-# Union Types Preserved in Schemas
44
+# Union Types Added to Some Tool Schemas
45
46
-Tool request and response schemas now preserve `anyOf` (Union types) instead of flattening them to a single type.
46
+We've added union types (`anyOf`) to the schemas for some tools, providing clearer type information in those APIs.
47
48
## What Changed
49
50
-Previously, when a field had multiple possible types (e.g., `string | number | null`), the schema parser would discard all but the first type. Now the full `anyOf` array is retained, giving you accurate type information.
50
+For select tools, fields that can take on multiple types (for example, `string`, `number`, or `null`) now use the `anyOf` keyword in their request and response schemas. Previously, these fields were modeled as a single type (e.g., just `string`) with an optional `nullable: true` flag.
51
52
## Before vs After
53
-
54
-**Previous (flattened, losing type info):**
53
+For example, the `GOOGLECALENDAR_GET_CURRENT_DATE_TIME` request schema changes:
54
+**Previous (only a single type):**
55
```json
56
{
57
- "properties": {
58
- "value": {
59
- "type": "string",
60
- "nullable": true
61
- }
57
+ "timezone": {
58
+ "default": 0,
59
+ "description": "Timezone specification...",
60
+ "title": "Timezone",
61
+ "type": "string"
62
}
63
}
64
```
@@ -66,14 +66,44 @@ Previously, when a field had multiple possible types (e.g., `string | number | n
66
**Now (Union types preserved):**
67
```json
68
{
69
- "properties": {
70
- "value": {
71
- "anyOf": [
72
- { "type": "string" },
73
- { "type": "integer" },
74
- { "type": "null" }
75
- ]
76
- }
69
+ "timezone": {
70
+ "anyOf": [
71
+ { "type": "string" },
72
+ { "type": "number" }
73
+ ],
74
+ "default": 0,
75
+ "description": "Timezone specification...",
76
+ "title": "Timezone"
77
+ }
78
+}
79
+```
80
+
81
+Similarly, nullable fields like `page_token` in `GOOGLECALENDAR_LIST_CALENDARS`:
82
+
83
+**Previous:**
84
+```json
85
+{
86
+ "page_token": {
87
+ "default": null,
88
+ "description": "Token for the page of results to return...",
89
+ "nullable": true,
90
+ "title": "Page Token",
91
+ "type": "string"
92
+ }
93
+}
94
+```
95
+
96
+**Now:**
97
+```json
98
+{
99
+ "page_token": {
100
+ "anyOf": [
101
+ { "type": "string" },
102
+ { "type": "null" }
103
+ ],
104
+ "default": null,
105
+ "description": "Token for the page of results to return...",
106
+ "title": "Page Token"
107
}
108
}
109
```