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.3.tar.gz (15.9 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.3-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

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

Hashes for tiptree-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fabc71a40f8aa362216ea6c00dfbdb16ef2dc39761b559ee0a06e54e621c7e4f
MD5 4ba62f6814ea528a274913b96e64839b
BLAKE2b-256 f69d7e62bad1286e3f99eb383569cbc3b290604bee4c89188540ea57e8d52f85

See more details on using hashes here.

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

Hashes for tiptree-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 add266e8eea8b76dd04c967c4629ce34388c5ed049b5263fc9c180ee76bbe0bc
MD5 72f0af9f0e762051fd29b5436eebe7cd
BLAKE2b-256 6724d5250d9fd9c7899c289f09a81b32e7c606681171935e3ada8369f6ff875f

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