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.2.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.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turingpulse_sdk_vertexai-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 5e81a7d2bd9956e6c046e18f32952796dc2e8b0794c631e770eb19c5b405a13a
MD5 d92cf16a757ebc3712c02c8eb75b20b0
BLAKE2b-256 8d2f5353afa0521330fad658ccb679a29f07c209c2ddae2c606836a869b11a1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for turingpulse_sdk_vertexai-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bac1d68f37e61d4f7e070f257312b64f86bd93281e8c683ad367b2a3e1c60220
MD5 be156421274c14cad615eed7f3eb3acb
BLAKE2b-256 c6524cba1058eabeb29ddde654b1f494ef6f6a732a75bd3fa73b61ee77a59c2f

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