answerline-langchain
LangChain tools for the answer and search monitoring API, built on the Python SDK (answerline).
pip install answerline-langchain
create_tools(client, engines=...) returns one sync monitor tool per engine (monitor_chatgpt, monitor_google_news, ...), plus create_async_task, get_task_status and get_credits. engines lists the task types the deployment serves (its served_engines; the API refuses priced engines outside it) and defaults to every priced engine. An async task's payload is validated as the monitor request of its taskType. API errors, timeouts and connection errors come back to the model as the tool result.
from answerline import Client
from answerline_langchain import create_tools
tools = create_tools(Client("sk_..."), engines=["CHATGPT"])
Tool input models in src/answerline_langchain/schemas.py are generated from openapi/openapi.json and the priced engines in config/pricing.toml by integrations/codegen (npm run generate there); do not edit them by hand.
Develop
Until answerline is published, install the SDK from the repository:
python -m venv .venv && .venv/bin/pip install -e ../../sdk/python -e .
.venv/bin/python -m unittest discover -s tests
Tests run offline against a local stub server.
Metadata
Release files for answerline-langchain 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| answerline_langchain-0.1.0.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| answerline_langchain-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.1 kB
Release files / answerline_langchain-0.1.0.tar.gz
| Download URL | answerline_langchain-0.1.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ea943ac35c2fa2ed1fdeebcae36cb30a3a1edd6860d2ff9b80e12793c78c789
|
|
BLAKE2b-256 checksum How to use checksums |
f61d8e1a103ea48ccdeb29e8a8ed6bc9de057737c2451f3f38b2ebdd6c6f08dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / answerline_langchain-0.1.0-py3-none-any.whl
| Download URL | answerline_langchain-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42d3fdf22e58dc11f2a42aeeebc831feffbd6821f88d98bd3a87a9e9abb4457c
|
|
BLAKE2b-256 checksum How to use checksums |
158a9871343a453403f13db19fd213cfada65ad5a5fb24108cf1bf4b0d72e0b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|