SDK for PINAI Intent Match API
Project description
PINAI Intent SDK
PINAI Intent SDK is a Python client library for interacting with the PINAI Intent Match API.
Installation
pip install pinai-intent-sdk
Quick Start
from pinai_intent_sdk import PINAIIntentSDK
from datetime import datetime
# Initialize SDK
sdk = PINAIIntentSDK(
base_url="https://ifemsp3wkd.us-east-1.awsapprunner.com/",
api_key="your-api-key"
)
# Register a new agent
agent = sdk.register_agent(
name="My Agent",
category="general",
description="A general purpose agent",
api_endpoint="https://my-agent-endpoint.com",
capabilities=["text", "image"],
pricing_model={"per_request": 0.001},
response_time=1.0,
availability=1.0,
metadata={"version": "1.0"}
)
# List agents
agents = sdk.list_agents(category="general", capability="text")
# Get single agent info
agent_info = sdk.get_agent("general_my_agent")
# Update agent information
updated_agent = sdk.update_agent(
agent_id="general_my_agent",
response_time=0.8,
availability=0.95
)
# Unregister agent
sdk.unregister_agent("general_my_agent")
# Get agent metrics
metrics = sdk.get_agent_metrics(
agent_id="general_my_agent",
start_time=datetime(2024, 1, 1),
end_time=datetime(2024, 1, 31)
)
Key Features
- Agent Management
- Register new agents
- Update agent information
- Get agent details
- Unregister agents
- Agent Queries
- List agents with category and capability filters
- Performance Monitoring
- Get agent metrics within specified time ranges
Documentation
For detailed documentation, visit https://docs.pinai.io
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pinai_intent_sdk-0.1.5.tar.gz.
File metadata
- Download URL: pinai_intent_sdk-0.1.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d51ae308ee82fbc1666977d950b8f2e135a7de7ab2bf69147bae2200e6b657f
|
|
| MD5 |
584cb2c91babecf1a70a3359f74c0f9e
|
|
| BLAKE2b-256 |
30cd8072b3ac5bdf71797cfd788420c9b485f3ca49e847600a2718971f062623
|
File details
Details for the file pinai_intent_sdk-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pinai_intent_sdk-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6ecf098f9402a3a0f7a9bdb7b1c33f9af7a1bc2ccaeabe8a1200d9cd4519cac
|
|
| MD5 |
85e595028d3a8c877d6234f820cec6c4
|
|
| BLAKE2b-256 |
283a35dd991db2a9c9a7df8e54c958f2fe42bcccd2923df4a6ac56917a983302
|