The SDK exposes four primitives. They compose, but each has a clear job.Documentation Index
Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
Use this file to discover all available pages before exploring further.
At a glance
| Primitive | What it is | Reach for it when… |
|---|---|---|
| Pipeline | A graph of nodes (LLMs, loaders, transforms, knowledge readers). Build → save → run. | You have a fixed flow: input → transforms → output. Includes RAG, batch jobs, scheduled triggers. |
| Agent | An LLM + tools + typed I/O. Runs autonomously or holds a conversation. | The flow is not fixed — the model decides which tool to call next. |
| Session | A live, multi-turn handle on an Agent or Chatbot, streaming events back. | You need turn-by-turn streaming, tool events, or human-in-the-loop approvals. |
| Knowledge Base | A managed vector + document store you query directly or via a Pipeline/Agent. | Documents need to be searchable across many Pipelines or Agents. |
How they compose
Pipelines and Agents are top-level objects you save to the platform. Sessions live on top of conversational Agents and Chatbots. Knowledge Bases are referenced from either.Pipeline
Pipeline overview
Build with
p.add.input / .llm / .output / …, then save() and run() or stream().Pipeline is the right primitive when the steps are known up front. The add builder is fluent and typed — the mypy plugin catches wiring mistakes statically.
Agent
Agent overview
An LLM with tools, instructions, and typed inputs/outputs.
- Functional — single call. You pass inputs, the agent decides which tools to call, you get outputs.
- Conversational — multi-turn. The agent holds a
Sessionand emits streaming events.
Session
Session overview
Multi-turn streaming handle returned by
agent.create_session() or chatbot.create_session().Session is an async context manager. You send() and listen() for events — message deltas, tool calls, tool results, approval requests, errors.
Knowledge Base
Knowledge Base reference
Create, query, index documents from Python.
KnowledgeBase is a managed store of documents (files, URLs, Wikipedia, YouTube, Arxiv) with vector + keyword search. Query it directly, or reference it from a Pipeline node or an Agent tool.
Picking the right primitive
Do you need turn-by-turn streaming?
If yes → put the Agent behind a Session. If no, call
agent.run() once.What’s next
Quickstart
Ship a pipeline in 60 seconds.
Pipeline overview
Build your first graph.
Agent overview
Tools, sessions, streaming.
