Skip to main content

VectorShift SDK

The Python SDK for building, saving, and running AI pipelines and agents on the VectorShift platform.

Prerequisites: Python 3.10+ and a VectorShift account.

Quickstart

1. Install the SDK

pip install vectorshift

2. Set your API key

Generate one at Account → API Keys, then export it:

export VECTORSHIFT_API_KEY="vs-..."

3. Build, save, and run

Paste this into a file (hello.py) and run it.

from vectorshift import Pipeline

p = Pipeline.new(name="Hello pipeline")
query = p.add(name="query").input(input_type="string")
llm = p.add(name="llm").llm(provider="openai", model="gpt-5.4", prompt=query.text)
p.add(name="answer").output(value=llm.response)

p.save()
result = p.run({"query": "What is VectorShift in one sentence?"})
print(result["outputs"]["answer"])
python hello.py

4. See it in the editor

Open the platform — your new pipeline is editable in the visual editor, identical to one built there.

For the best developer experience, enable the mypy plugin. It catches wrong field names on node builders, mismatched types between wired nodes, and agent tools missing required inputs — at edit time, before you save. Drop a mypy.ini with plugins = vectorshift.mypy_plugin and most editors (VS Code, Cursor, PyCharm, Zed) light up SDK-aware errors inline as you type.

Build with ChatGPT or Claude

Paste this at the start of a ChatGPT or Claude chat, then describe what you want. It points the model at the SDK docs so it builds the right VectorShift object — pipeline, agent, knowledge base, or table — correctly.

You are building with the VectorShift Python SDK. Before writing code, read
https://docs.vectorshift.ai/llms.txt and the SDK reference pages it links.
Follow the documented patterns exactly: use the builder API, correct node and
field names, and the right object type for my request (pipeline, agent,
knowledge base, or table). Install with `pip install vectorshift` and
authenticate via the VECTORSHIFT_API_KEY environment variable. Then build,
save, and run what I describe, returning one complete runnable script.

My request:

Documentation

Full documentation — streaming, background runs, agents, knowledge bases, and the complete API reference — lives at docs.vectorshift.ai/sdk.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vectorshift-0.1.14.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

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

vectorshift-0.1.14-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file vectorshift-0.1.14.tar.gz.

File metadata

  • Download URL: vectorshift-0.1.14.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vectorshift-0.1.14.tar.gz
Algorithm Hash digest
SHA256 34caa5d4383106f2a49d840347f336635b7e3c02f84b77ab08ea10f966a5cb1c
MD5 2aa89ced2a3a65f34a300b241fe7580e
BLAKE2b-256 fa0b47832ccfa3424774cc439640dea92a35cd9ac8642198e021aeccd60f31bc

See more details on using hashes here.

File details

Details for the file vectorshift-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: vectorshift-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vectorshift-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 df51ab3c6ac65e540a095fe24c3df0174c64b93339228f2fc1d6719459dfff3f
MD5 81ec36537af12f85ed2efe2d87d52540
BLAKE2b-256 fb2e3b5949fe61e336fd996e3d4acca5382cf27961ab9b0e0eaa9040eaff589d

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.15

2 files

This release

0.1.14 This release

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.94

2 files

0.0.93

2 files

0.0.92

2 files

0.0.91

2 files

0.0.90

2 files

0.0.89

2 files

0.0.88

2 files

0.0.87

2 files

0.0.86

2 files

0.0.85

2 files

0.0.84

2 files

0.0.83

2 files

0.0.82

2 files

0.0.81

2 files

0.0.80

2 files

0.0.79

2 files

0.0.78

2 files

0.0.77

2 files

0.0.76

2 files

0.0.75

2 files

0.0.74

2 files

0.0.73

2 files

0.0.72

2 files

0.0.71

2 files

0.0.70

2 files

0.0.69

2 files

0.0.68

2 files

0.0.67

2 files

0.0.66

2 files

0.0.65

2 files

0.0.64

2 files

0.0.63

2 files

0.0.62

2 files

0.0.61

2 files

0.0.60

2 files

0.0.59

2 files

0.0.58

2 files

0.0.57

2 files

0.0.56

2 files

0.0.55

2 files

0.0.54

2 files

0.0.53

2 files

0.0.52

2 files

0.0.51

2 files

0.0.50

2 files

0.0.49

2 files

0.0.48

2 files

0.0.47

2 files

0.0.46

2 files

0.0.45

2 files

0.0.44

2 files

0.0.43

2 files

0.0.42

2 files

0.0.41

2 files

0.0.40

2 files

0.0.39

2 files

0.0.38

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.31

2 files

0.0.30

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page