In-process SDK runtime for agent-search
Project description
agent-search core SDK
In-process Python SDK for agent-search. This package lets you call the runtime directly inside your own app.
The SDK always requires both:
- A chat model (e.g.
langchain_openai.ChatOpenAI) - A vector store that implements
similarity_search(query, k, filter=None)
It does not auto-build these dependencies for you.
Install (PyPI)
python3.13 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install agent-search-core
Quick start
from langchain_openai import ChatOpenAI
from agent_search import run
from agent_search.vectorstore.langchain_adapter import LangChainVectorStoreAdapter
vector_store = LangChainVectorStoreAdapter(your_langchain_vector_store)
model = ChatOpenAI(model="gpt-4.1-mini", temperature=0.0)
response = run("What is pgvector?", vector_store=vector_store, model=model)
print(response.output)
Requirements
- Python
>=3.11,<3.14 - A compatible vector store and chat model as shown above.
Build
cd sdk/core
python -m build
Runtime API surface
Primary functions exposed by agent_search:
runrun_asyncget_run_statuscancel_run
Config and errors exposed by agent_search:
RuntimeConfig,RuntimeTimeoutConfig,RuntimeRetrievalConfig,RuntimeRerankConfigSDKError,SDKConfigurationError,SDKRetrievalError,SDKModelError,SDKTimeoutError
Vector store compatibility
Runtime SDK expects similarity_search(query, k, filter=None).
For LangChain-backed stores, use:
agent_search.vectorstore.langchain_adapter.LangChainVectorStoreAdapter
Notes
- For the full app (API, DB, UI), run this repo with Docker Compose.
- For SDK-only use, install from PyPI and supply your own model + vector store.
Release guidance
Use the repository release script from project root:
./scripts/release_sdk.sh
Publish flow (requires TWINE_API_TOKEN):
PUBLISH=1 TWINE_API_TOKEN=*** ./scripts/release_sdk.sh
Tag format used by CI release workflow:
agent-search-core-v<version>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_search_core-0.1.2.tar.gz.
File metadata
- Download URL: agent_search_core-0.1.2.tar.gz
- Upload date:
- Size: 69.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1ce6f312a877a037e62b6bfe7063dff00f7ce3d68a30099f0ddd96e40da9908
|
|
| MD5 |
9ac8f9567a42e1c88e0281ef41f67f0b
|
|
| BLAKE2b-256 |
0205bc99bbdf58e920c4f9e0e0cd4251114be296ab43952bde6d35c76c11e6fc
|
File details
Details for the file agent_search_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: agent_search_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee63688ed22583d92e3adb9d8bfc7ddb45f6c1746cd8be1f66046f7f015e3232
|
|
| MD5 |
cd33628fa795e512966b53512f0f849b
|
|
| BLAKE2b-256 |
f16b5b4ccf934102aee1d95484869283e2e7c4277c136ef5c7c86ae26637a9dd
|