Skip to main content

overview

the Agent class represents a voice agent that will call your voice agent for testing purposes. it defines the characteristics and behavior of the test agent through a prompt and voice settings.

constructor

parameters

  • name (str): the name of the agent (used when displaying test results)
  • prompt (str): the system prompt that defines the agent’s characteristics and behavior
  • voice_id (str, optional): the cartesia voice id for the agent. defaults to a british female voice.

example usage

notes

  • the agent’s prompt should define its personality, speaking patterns, and any specific behaviors you want it to exhibit during the test call.
  • the voice id determines how the agent will sound during the call. you can use different voices to test how your system handles various speaker characteristics.