Skip to main content

langchain-shinapi

Search what high-authority Japanese sites say now, from LangChain: a tool for agents and a retriever for RAG. By ShinAPI.

pip install langchain-shinapi

Get a key in the console and set SHINAPI_KEY, or pass api_key.

The tool

from langchain.agents import create_agent
from langchain_shinapi import ShinAPISearch

agent = create_agent("anthropic:claude-sonnet-5-5", tools=[ShinAPISearch()])
agent.invoke({"messages": [{"role": "user", "content": "2026年の年収の壁はいくらですか"}]})

The tool answers the model with the search's JSON, and keeps the parsed answer as the message's artifact. Its description tells the model what is indexed and what to do with each outcome: answered, no_match_in_scope or out_of_scope.

The retriever

from langchain_shinapi import ShinAPIRetriever

retriever = ShinAPIRetriever(k=8, exclude_domains=["example.co.jp"])
for document in retriever.invoke("育児休業給付金の支給率"):
    print(document.metadata["url"], document.metadata["attribution"], document.page_content)

Each passage is a document: its text is the page content, and its URL, title, publisher, dates, licence and credit line are the metadata. Show the attribution where you show the text.

Read the docs.

Metadata

Release files for langchain-shinapi 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-shinapi 0.1.1
File Size Uploaded Provenance Actions
langchain_shinapi-0.1.1.tar.gz 3.1 kB With provenance Details for langchain_shinapi-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-shinapi 0.1.1
File Interpreter ABI Platform Actions
langchain_shinapi-0.1.1-py3-none-any.whl Python 3 none any Details for langchain_shinapi-0.1.1-py3-none-any.whl

Total release size: 7.8 kB

Release files / langchain_shinapi-0.1.1.tar.gz

Download URL langchain_shinapi-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4e405c3c517fc1cb8f5256424432b48b1f2e841a90dd137bdd46da7f69f0e7b2
BLAKE2b-256 checksum
How to use checksums
db111d17fa73b4d5d37f38a680cc6834f90a3a425fdfd605c207974a803b97df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / langchain_shinapi-0.1.1-py3-none-any.whl

Download URL langchain_shinapi-0.1.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c968897379da551fc5ae715bfec8833a4ce25e2bb04e20defa85321666267778
BLAKE2b-256 checksum
How to use checksums
83698f40e3810c817a3ed7fc521b66baf31a0427f05757a5021707f7220642bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for langchain-shinapi 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_shinapi-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page