Client library for the Tiptree Platform API
Project description
Tiptree Client
A Python client library for interacting with the Tiptree's Agent Runtime Platform. This client provides both synchronous and asynchronous methods for all API endpoints.
Installation
pip install tiptree
Quick Start
Please make sure your API keys are either saved in ~/.tiptreerc/credentials or passed as an environment variable:
export TIPTREE_API_KEY=<your-api-key>
Here's a simple example of how to use the client:
from tiptree import Agent
# Create an agent
agent = Agent.get_or_create()
# Create an agent session
session = agent.create_agent_session()
# Send message to session
sent_message = session.send_message("What's the weather like in Berlin right now?")
# Wait for the response
received_message = session.wait_for_next_message()
print(received_message.content)
Features
- Full support for the Tiptree Platform API
- Both synchronous and asynchronous APIs
- Type hints for better IDE integration
- Comprehensive models for all API entities
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 tiptree-0.0.3.tar.gz.
File metadata
- Download URL: tiptree-0.0.3.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fabc71a40f8aa362216ea6c00dfbdb16ef2dc39761b559ee0a06e54e621c7e4f
|
|
| MD5 |
4ba62f6814ea528a274913b96e64839b
|
|
| BLAKE2b-256 |
f69d7e62bad1286e3f99eb383569cbc3b290604bee4c89188540ea57e8d52f85
|
File details
Details for the file tiptree-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tiptree-0.0.3-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
add266e8eea8b76dd04c967c4629ce34388c5ed049b5263fc9c180ee76bbe0bc
|
|
| MD5 |
72f0af9f0e762051fd29b5436eebe7cd
|
|
| BLAKE2b-256 |
6724d5250d9fd9c7899c289f09a81b32e7c606681171935e3ada8369f6ff875f
|