Skip to main content

TuringPulse SDK integration for Google Vertex AI (Gemini)

Project description

turingpulse-sdk-vertexai

TuringPulse SDK integration for Google Vertex AI — automatic tracing for Gemini models via Vertex AI.

Installation

pip install turingpulse-sdk-vertexai

Quick Start

import vertexai
from vertexai.generative_models import GenerativeModel
from turingpulse_sdk import init, TuringPulseConfig
from turingpulse_sdk_vertexai import instrument_vertexai

init(TuringPulseConfig(api_key="sk_live_...", workflow_name="my-project"))
instrument_vertexai(name="my-project")

vertexai.init(project="my-gcp-project", location="us-central1")
model = GenerativeModel("gemini-1.5-pro")
response = model.generate_content("Hello!")

Documentation

Full documentation: turingpulse.ai/docs/sdk/vertexai

Requirements

  • Python >= 3.11
  • turingpulse-sdk >= 1.0.0
  • google-cloud-aiplatform >= 1.60.0

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

turingpulse_sdk_vertexai-1.3.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

turingpulse_sdk_vertexai-1.3.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file turingpulse_sdk_vertexai-1.3.0.tar.gz.

File metadata

  • Download URL: turingpulse_sdk_vertexai-1.3.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for turingpulse_sdk_vertexai-1.3.0.tar.gz
Algorithm Hash digest
SHA256 98b0df3e7ebd76e09df4ba143e12694e0bddde326c30666c69fe4a691cbd55aa
MD5 45f448ea30c48cacbd9012477ddfbbc5
BLAKE2b-256 2178b94763f2e868d504981a2c05666a41a109824e6ce2a653387f8b92c2aaf1

See more details on using hashes here.

File details

Details for the file turingpulse_sdk_vertexai-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for turingpulse_sdk_vertexai-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a83bb91506194f9bffac55a4b0f38a8bcbb303759a7a6e203a90a7f8da8a6a99
MD5 64bf0020a87e84d8884632cb86bcec08
BLAKE2b-256 a453920f2af2d920f743e1ca4c8de9a1b2201621d94cd3d63bf0ebdcff13d64a

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