Skip to main content

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

tiptree-0.0.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiptree-0.0.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file tiptree-0.0.2.tar.gz.

File metadata

  • Download URL: tiptree-0.0.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for tiptree-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9ae02b34d88c154fe3d039208f5d03d8cc81ac60e59ab357055291435416b5a2
MD5 53724863f5f28bf90a170b4aa1e79d0b
BLAKE2b-256 cdbcb91d28b5e40be81d459c99dd45e6e35e6ef1ea3c2baf50c61defe7171560

See more details on using hashes here.

File details

Details for the file tiptree-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tiptree-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for tiptree-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32caead3d8b1a085f736a5929364150b837a324fb8b2f1a4210110ed2b730493
MD5 019cb4a26fee4df6f5e38750728b3cdd
BLAKE2b-256 49a56076babd190504cfc7e0af125a6ca863a39bea5c6bbe223dc23aeccf568d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page