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.4.tar.gz (17.1 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.4-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiptree-0.0.4.tar.gz
  • Upload date:
  • Size: 17.1 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.4.tar.gz
Algorithm Hash digest
SHA256 50965faa94eee0656421fb0bfd52fd02429cd3d1c4306ed16451fb37dc6f50a6
MD5 0d44046e28a9c941a991e3cdacc856c7
BLAKE2b-256 a300ded473217609dfdbf02ab60779eb58f576cf535f53a980adc168837b5307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tiptree-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 39fb9800eb4501f2b8307dde8556c87a27356cdb082085a5e6a79a02b1ce786e
MD5 bd9e3b2edf7a850fb748106f4a7d8682
BLAKE2b-256 6216809cb4e2ce7d32c309e46bb0692bce32a8b1046811840e8978fedf76d540

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