Context
Change Type: Feature
Product area: Application enablement & solutions
Component: AI Agents
Deployed at: eu.latest.cumulocity.com, apj.cumulocity.com, jp.cumulocity.com, cumulocity.com, 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}andPOST /agent/object/{name}now accept only themessages,promptandvariablesfields. Requests that contain any other field are rejected with HTTP status 400. - The
messagesfield can no longer contain messages withrole: "system". Define the system prompt in thesystemfield of the agent definition instead. - Full responses (
fullResponse=true) no longer include the raw request and response bodies of each step (steps[].request.bodyandsteps[].response.body). - In streamed responses,
start-stepevents no longer includerequest.body. To identify the model that was used, readresponse.modelIdfrom thefinish-stepevent. - The output of object agents is now validated against the agent’s JSON schema, including string formats such as
date-timeoremail. If the output does not match the schema, the request fails with HTTP status 400 instead of returning the invalid output.