# PINAI Intent SDK
PINAI Intent SDK is a Python client library for interacting with the PINAI Intent Match API.
## Installation
```bash
pip install pinai-intent-sdk
```
## Quick Start
```python
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](https://docs.pinai.io)
```
Raw data
{
"_id": null,
"home_page": "https://pinai.io",
"name": "pinai-intent-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "pinai, intent, sdk, api, machine learning, ai",
"author": "smile",
"author_email": "smile@pinai.io",
"download_url": "https://files.pythonhosted.org/packages/30/cd/8072b3ac5bdf71797cfd788420c9b485f3ca49e847600a2718971f062623/pinai_intent_sdk-0.1.5.tar.gz",
"platform": null,
"description": "# PINAI Intent SDK\n\nPINAI Intent SDK is a Python client library for interacting with the PINAI Intent Match API.\n\n## Installation\n\n```bash\npip install pinai-intent-sdk\n```\n\n## Quick Start\n\n```python\nfrom pinai_intent_sdk import PINAIIntentSDK\nfrom datetime import datetime\n\n# Initialize SDK\nsdk = PINAIIntentSDK(\n base_url=\"https://ifemsp3wkd.us-east-1.awsapprunner.com/\",\n api_key=\"your-api-key\"\n)\n\n# Register a new agent\nagent = sdk.register_agent(\n name=\"My Agent\",\n category=\"general\",\n description=\"A general purpose agent\",\n api_endpoint=\"https://my-agent-endpoint.com\",\n capabilities=[\"text\", \"image\"],\n pricing_model={\"per_request\": 0.001},\n response_time=1.0,\n availability=1.0,\n metadata={\"version\": \"1.0\"}\n)\n\n# List agents\nagents = sdk.list_agents(category=\"general\", capability=\"text\")\n\n# Get single agent info\nagent_info = sdk.get_agent(\"general_my_agent\")\n\n# Update agent information\nupdated_agent = sdk.update_agent(\n agent_id=\"general_my_agent\",\n response_time=0.8,\n availability=0.95\n)\n\n# Unregister agent\nsdk.unregister_agent(\"general_my_agent\")\n\n# Get agent metrics\nmetrics = sdk.get_agent_metrics(\n agent_id=\"general_my_agent\",\n start_time=datetime(2024, 1, 1),\n end_time=datetime(2024, 1, 31)\n)\n\n```\n\n## Key Features\n\n- Agent Management\n - Register new agents\n - Update agent information\n - Get agent details\n - Unregister agents\n- Agent Queries\n - List agents with category and capability filters\n- Performance Monitoring\n - Get agent metrics within specified time ranges\n\n## Documentation\n\nFor detailed documentation, visit [https://docs.pinai.io](https://docs.pinai.io)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "SDK for PINAI Intent Match API",
"version": "0.1.5",
"project_urls": {
"Bug Tracker": "https://github.com/yourusername/pinai-intent-sdk/issues",
"Documentation": "https://docs.pinai.io",
"Homepage": "https://pinai.io",
"Source Code": "https://github.com/yourusername/pinai-intent-sdk"
},
"split_keywords": [
"pinai",
" intent",
" sdk",
" api",
" machine learning",
" ai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "283a35dd991db2a9c9a7df8e54c958f2fe42bcccd2923df4a6ac56917a983302",
"md5": "85e595028d3a8c877d6234f820cec6c4",
"sha256": "f6ecf098f9402a3a0f7a9bdb7b1c33f9af7a1bc2ccaeabe8a1200d9cd4519cac"
},
"downloads": -1,
"filename": "pinai_intent_sdk-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "85e595028d3a8c877d6234f820cec6c4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6849,
"upload_time": "2024-11-19T06:15:32",
"upload_time_iso_8601": "2024-11-19T06:15:32.347474Z",
"url": "https://files.pythonhosted.org/packages/28/3a/35dd991db2a9c9a7df8e54c958f2fe42bcccd2923df4a6ac56917a983302/pinai_intent_sdk-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "30cd8072b3ac5bdf71797cfd788420c9b485f3ca49e847600a2718971f062623",
"md5": "584cb2c91babecf1a70a3359f74c0f9e",
"sha256": "3d51ae308ee82fbc1666977d950b8f2e135a7de7ab2bf69147bae2200e6b657f"
},
"downloads": -1,
"filename": "pinai_intent_sdk-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "584cb2c91babecf1a70a3359f74c0f9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 6375,
"upload_time": "2024-11-19T06:15:33",
"upload_time_iso_8601": "2024-11-19T06:15:33.664330Z",
"url": "https://files.pythonhosted.org/packages/30/cd/8072b3ac5bdf71797cfd788420c9b485f3ca49e847600a2718971f062623/pinai_intent_sdk-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 06:15:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yourusername",
"github_project": "pinai-intent-sdk",
"github_not_found": true,
"lcname": "pinai-intent-sdk"
}