# October 22, 2026 - AI agents upgraded to Vercel AI SDK 7 with stricter API validation

**URL:** <https://community.cumulocity.com/t/october-22-2026-ai-agents-upgraded-to-vercel-ai-sdk-7-with-stricter-api-validation/15289>\
**Category:** Application Enablement\
**Tags:** ai-agents, Feature, app-enablement\
**Created:** [October 23, 2026, 7:16am UTC](https://community.cumulocity.com/t/october-22-2026-ai-agents-upgraded-to-vercel-ai-sdk-7-with-stricter-api-validation/15289 "2026-10-23T07:16:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cumulocity](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/cumulocity/32/31990_2.png) [@cumulocity](https://community.cumulocity.com/u/cumulocity)\
**Post date:** [October 23, 2026, 7:16am UTC](https://community.cumulocity.com/t/october-22-2026-ai-agents-upgraded-to-vercel-ai-sdk-7-with-stricter-api-validation/15289/1 "2026-10-23T07:16:11Z")

</div>

## Context

* * *

**Change Type:** Feature  
**Product area:** Application enablement & solutions  
**Component:** AI Agents  
**Deployed at:** [eu.latest.cumulocity.com](http://eu.latest.cumulocity.com), [apj.cumulocity.com](http://apj.cumulocity.com), [jp.cumulocity.com](http://jp.cumulocity.com), [cumulocity.com](http://cumulocity.com), [us.cumulocity.com](http://us.cumulocity.com)

> **Technical details**
>
> **Build artifact:** ai-agents (3.0.0)  
> **Internal ID:** MTM-67854

## Description

* * *

The AI Agents microservice now uses version 7 of the Vercel AI SDK. You can now define an agent’s system prompt as a single system message or as a list of system messages. This lets you set provider-specific options on the system prompt, for example, to enable Anthropic prompt caching and reduce cost and latency for repeated requests.

**Important** : This release contains breaking changes to the agent API. If you call agents directly through the API, review the following changes and update your integrations accordingly:

- Requests to `POST /agent/text/{name}` and `POST /agent/object/{name}` now accept only the `messages`, `prompt` and `variables` fields. Requests that contain any other field are rejected with HTTP status 400.
- The `messages` field can no longer contain messages with `role: "system"`. Define the system prompt in the `system` field of the agent definition instead.
- Full responses (`fullResponse=true`) no longer include the raw request and response bodies of each step (`steps[].request.body` and `steps[].response.body`).
- In streamed responses, `start-step` events no longer include `request.body`. To identify the model that was used, read `response.modelId` from the `finish-step` event.
- The output of object agents is now validated against the agent’s JSON schema, including string formats such as `date-time` or `email`. If the output does not match the schema, the request fails with HTTP status 400 instead of returning the invalid output.
