Skip to main content

Python SDK for managing and deploying voice agents to Moss platform

Project description

Moss Voice Agent Manager

Python SDK for managing and deploying voice agents using the Moss platform.

Installation

pip install moss-voice-agent-manager

Or install from source:

cd python-sdk
pip install -e .

Quick Start

1. Get Your Credentials

You need three pieces of information:

  1. MOSS_PROJECT_ID - Your project UUID
  2. MOSS_PROJECT_KEY - Your project read key
  3. MOSS_VOICE_AGENT_ID - Voice agent UUID to deploy to

2. Simple Deployment

from moss_voice_agent_manager import MossVoiceClient

# Create client
client = MossVoiceClient(
    project_id="your-project-uuid",
    project_key="your-project-read-key"
)

# Deploy agent
response = client.deploy(
    agent_id="my-agent",
    prompt="You are a helpful AI assistant",
    voice_agent_id="voice-agent-uuid"
)

print(f"Deployed to: {response.deployment_url}")

3. Deploy with Custom Tools

def get_weather(city: str) -> str:
    """Get weather for a city."""
    return f"Weather in {city} is sunny"

response = client.deploy(
    agent_id="weather-bot",
    prompt="You are a weather assistant",
    voice_agent_id="voice-agent-uuid",
    function_tools=[get_weather]
)

Environment Variables

Set these for easier testing:

export MOSS_PROJECT_ID="your-project-uuid"
export MOSS_PROJECT_KEY="your-project-read-key"
export MOSS_VOICE_AGENT_ID="voice-agent-uuid"

API Reference

MossVoiceClient

client = MossVoiceClient(
    project_id: str,        # Your Moss project ID (required)
    project_key: str,       # Your Moss project key (required)
    timeout: int            # Request timeout in seconds (default: 300)
)

deploy()

response = client.deploy(
    agent_id: str,              # Unique agent identifier (required)
    prompt: str,                # System prompt (required)
    voice_agent_id: str,        # Voice agent UUID (required)
    initial_greeting: str,      # Optional greeting message
    function_tools: List,       # Optional list of Python functions
    tool_refs: List[str],       # Optional importable tool references
)

Returns DeploymentResponse:

  • ok: bool - Success flag
  • project_name: str - Project name
  • deployment_url: str - URL to view in dashboard
  • cli_stdout: str - Deployment logs
  • cli_stderr: str - Error logs if any
  • error: str - Error message if failed

## Requirements

- Python 3.9+
- No external dependencies (uses standard library)

## License

MIT

## Support

For issues and questions, visit: https://github.com/your-org/python-sdk

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moss_voice_agent_manager-1.0.0b2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moss_voice_agent_manager-1.0.0b2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file moss_voice_agent_manager-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for moss_voice_agent_manager-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 d1fa73dad65736d6d98bd2569a8c4c66093d6228d70751816285062c57a099e1
MD5 eec417f81ee35f33f2b3e30ee43130d9
BLAKE2b-256 bfcb0ba9a4beee8bec300fb2dad52c75a2d5e634f043f9446375ef4a738aa94c

See more details on using hashes here.

File details

Details for the file moss_voice_agent_manager-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for moss_voice_agent_manager-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa2c2d946ef30424970853b9bd1c6931e7a7a8f598a91846d3d0024144821f2
MD5 9179347fce0e8054f6b3541de7c8316b
BLAKE2b-256 8bc1aeb9847c747f8a8870830f85dc70de18bf361a8b97020b056ed136ea0af2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page