Agents receive structured object context by interpolating SDK objects
directly into session text. The SDK’s __str__ emits \<vs-context>
blocks that VectorShift recognizes and resolves to the real object.
What this demonstrates:
- str(kb), str(pipeline), str(agent), str(chatbot) ->
\<vs-context>
- kb.item(item_id) / kb.folder(folder_id) for granular references
- Inline use in session.send() and in f-strings
- repr() stays developer-facing (never the wire format)
Prerequisites for running end-to-end:
export VECTORSHIFT_API_KEY=…
and a conversational agent that can consume <vs-context> input
Source: examples/agents/20_vs_context_stringification.py in the SDK repo.