Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
omni-code / tests / test_voice_agent.py
Size: Mime:
from pathlib import Path

import yaml


def test_voice_agent_yaml_has_required_fields():
    """Test that voice_agent agent.yml has required configuration."""
    agent_yml = Path(__file__).parent.parent / "omni_agents" / "voice_agent" / "agent.yml"
    config = yaml.safe_load(agent_yml.read_text(encoding="utf-8"))

    assert config["name"] == "voice_agent"
    assert config["label"] == "Omni Code Voice"
    assert "tools" in config
    assert isinstance(config["tools"], list)
    assert config["use_safe_agent"] is True


def test_voice_instructions_reference_voice_expectations():
    """Test that voice instructions contain voice-specific guidance."""
    instructions_md = Path(__file__).parent.parent / "omni_agents" / "voice_agent" / "instructions.md"
    text = instructions_md.read_text(encoding="utf-8")

    assert "Omni Code Voice" in text
    assert "Voice Expectations" in text