Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
feat: add response error and request union changelog
shreysingla11904f86fbce85
diff --git a/fern/pages/src/changelog/01-07-26.md b/fern/pages/src/changelog/01-07-26.mdindex 5e781850e..c2e34ba5c 100644--- a/fern/pages/src/changelog/01-07-26.md+++ b/fern/pages/src/changelog/01-07-26.md@@ -41,24 +41,24 @@ All error responses from tool execution now include:----# Union Types Preserved in Schemas+# Union Types Added to Some Tool Schemas-Tool request and response schemas now preserve `anyOf` (Union types) instead of flattening them to a single type.+We've added union types (`anyOf`) to the schemas for some tools, providing clearer type information in those APIs.## What Changed-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.+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.## Before vs After--**Previous (flattened, losing type info):**+For example, the `GOOGLECALENDAR_GET_CURRENT_DATE_TIME` request schema changes:+**Previous (only a single type):**```json{- "properties": {- "value": {- "type": "string",- "nullable": true- }+ "timezone": {+ "default": 0,+ "description": "Timezone specification...",+ "title": "Timezone",+ "type": "string"}}```@@ -66,14 +66,44 @@ Previously, when a field had multiple possible types (e.g., `string | number | n**Now (Union types preserved):**```json{- "properties": {- "value": {- "anyOf": [- { "type": "string" },- { "type": "integer" },- { "type": "null" }- ]- }+ "timezone": {+ "anyOf": [+ { "type": "string" },+ { "type": "number" }+ ],+ "default": 0,+ "description": "Timezone specification...",+ "title": "Timezone"+ }+}+```++Similarly, nullable fields like `page_token` in `GOOGLECALENDAR_LIST_CALENDARS`:++**Previous:**+```json+{+ "page_token": {+ "default": null,+ "description": "Token for the page of results to return...",+ "nullable": true,+ "title": "Page Token",+ "type": "string"+ }+}+```++**Now:**+```json+{+ "page_token": {+ "anyOf": [+ { "type": "string" },+ { "type": "null" }+ ],+ "default": null,+ "description": "Token for the page of results to return...",+ "title": "Page Token"}}```