Skip to content

Add Cartesia Managed Agents framework - #241

Merged
raghavm243512 merged 3 commits into
ServiceNow:mainfrom
sauhardjain:cartesia-managed
Oct 21, 2026
Merged

raghavm243512 merged 3 commits into
ServiceNow:mainfrom
sauhardjain:cartesia-managed

Conversation

@sauhardjain

@sauhardjain sauhardjain commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Adds a cartesia_managed framework that runs EVA conversations against a Cartesia managed agent over its WebSocket API.

  • The agent handles listening, turn-taking, interruptions and speech. EVA's tools run as client tools through the shared ToolExecutor.
  • EVA's system prompt and greeting are sent with each call as dynamic variables.
  • scripts/cartesia_managed/provision_agents.py creates or updates one agent per domain; the agent config lives in that script.
  • The server logs one response per spoken agent turn and records both tracks at playback time.

Running

# .env: CARTESIA_API_KEY=...
uv run python scripts/cartesia_managed/provision_agents.py  # --model picks the LLM (default gpt-5.5)
scripts/cartesia_managed/run.sh airline                     # likewise itsm, medical_hr

Testing
Unit tests cover session setup, transcript segmentation and audio mixing. pytest tests/ and pre-commit pass.

@sauhardjain
sauhardjain marked this pull request as ready for review October 19, 2026 19:32
Comment thread src/eva/models/config.py
@raghavm243512
raghavm243512 added this pull request to the merge queue Oct 21, 2026
Merged via the queue into ServiceNow:main with commit 634a16a Oct 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants