PsyNova - SDK
Psynova is a Python-based AI agent framework that enables developers to create, manage, and interact with AI agents through a simple yet powerful API interface.
Last updated
pip install psynova==1.2from psynova import PsynovaClient
# Initialize the client
client = PsynovaClient(
private_key="your_private_key",
base_url="https://api.psynova.ai" # Optional: defaults to dev environment
)
# Create a new agent
agent_id = client.create_agent(
name="My AI Agent",
version_id=1,
using_https=True,
using_socket=True
)
# Chat with the agent
response = client.chat(
agent_id=agent_id,
message="Hello, AI agent!"
)
print(response)try:
response = client.chat(agent_id=1, message="Hello")
except PsynovaAPIError as e:
print(f"Error: {str(e)}")
if e.errors:
print(f"Additional details: {e.errors}")client = PsynovaClient(private_key, base_url="https://api.psynova.ai", timeout=30)agent = client.get_agent(agent_id=1)agents = client.list_agents()response = client.chat(agent_id=1, message="Hello!")agent_id = client.create_agent(
name="My Agent",
version_id=1,
using_https=True,
using_socket=True
)