Skip to main content

What is supported

strands-agents 1.0 and later. Onecortex recognises a Strands Agent and streams it with stream_async.

A complete agent

agent.yml
requirements.txt
agent.py
Add OPENAI_API_KEY as a secret on the agent’s Config tab, then deploy. Any model works: this one is an example. See Configuration and secrets.

A complete Strands Agents example

weather-planner: A day planner that checks a forecast tool first, on the oldest supported release. It runs with no model key.

The prompt and the reply

The prompt is the agent’s input. The reply is its streamed text.

Events it reports

See Streaming and events.

The caller’s fields

In the invocation state, as invocation_state["onecortex"], which Strands hands to tools that ask for their context:
Sessions: Strands’ own session managers are not connected. The same sessionId reaches the same running instance, where the agent object keeps its conversation in memory. See Sessions.

Known limits

  • Choose a model explicitly: an agent created without model= uses Strands’ default provider, which needs credentials you would have to supply.

Troubleshooting

More on Troubleshooting and Errors.
Last modified on September 28, 2026