What is supported
llama-index-core 0.14 and later. Onecortex recognises an AgentWorkflow or a FunctionAgent and streams its run.
A complete agent
agent.yml
requirements.txt
agent.py
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 LlamaIndex example
docs-qa: A documentation assistant searching pages in its folder and citing the one it used. It runs with no model key.The prompt and the reply
The prompt is the run’s user message. The reply is the streamed answer.Events it reports
See Streaming and events.
The caller’s fields
In the workflow context’s store, underonecortex. A tool that declares a Context parameter reads it:
Known limits
- Each call starts a new workflow context: context state does not carry from one call to the next.
Troubleshooting
More on Troubleshooting and Errors.