Agent class wraps the VectorShift agent platform: declarative tools, typed inputs/outputs, and multi-turn conversations via Session.
Prerequisites: Installed SDK · API key set · Python 3.10+.
Mental model
- An agent is an LLM + tools + instructions + typed I/O.
- Two flavours: Functional (single call, you get outputs back — designed to be invoked from inside a Pipeline) and Conversational (multi-turn, runs behind a
Session). Pick withtype=AgentType.FUNCTIONALorAgentType.CONVERSATIONAL. - Tools are declared with
Tool+ToolInput. ~200 integration tools are auto-generated undervectorshift.agent.tools. - Every method has an async variant (
anew,arun,acreate_session, …).
Quick start
Functional vs Conversational
Recent additions
The recent agent revamp introduced theTool / ToolInput system, an auto-generated catalogue of ~200 integration tools (vectorshift.agent.tools), and Session objects with streamed events.
What’s next
Reference
Every public method, grouped by topic.
Examples
Runnable examples to copy-paste and adapt.
Session
Multi-turn streaming on top of an Agent.
