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
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
Python 3.10 or higher
Dependencies:
requests 2.31.0
The framework includes robust error handling through the PsynovaAPIError
class, which provides detailed error messages and optional additional error context when API requests fail.
Constructor
private_key
(str): Private key for authentication
base_url
(str, optional): Base URL for API. Defaults to development environment
timeout
(int, optional): Request timeout in seconds. Defaults to 30
Methods
get_agent(agent_id)
Retrieves details of a specific agent.
Returns: Dictionary containing agent details (id, name, version_id, status)
list_agents()
Lists all agents associated with the account.
Returns: List of dictionaries containing agent details
chat(agent_id, message)
Sends a chat message to an agent.
Returns: String containing the agent's response
create_agent(name, version_id, using_https=True, using_socket=True)
Creates a new agent with specified configuration.
Returns: Integer ID of the newly created agent