Skip to content

docs: fix API signature, add pydantic dep, fix URLs#9

Merged
beonde merged 2 commits into
mainfrom
fix/docs-p2-pypi-urls
May 2, 2026
Merged

docs: fix API signature, add pydantic dep, fix URLs#9
beonde merged 2 commits into
mainfrom
fix/docs-p2-pypi-urls

Conversation

@beonde
Copy link
Copy Markdown
Member

@beonde beonde commented May 2, 2026

Summary

Fixes documentation URL, CapiscioTool API signature, missing pydantic dependency, and langgraph prerequisite note.

Issues Fixed

  • P2-4 (Medium): Documentation URL points to wrong location
  • P2-11 (Medium): Multiple README inaccuracies

Changes

PyPI URL (commit 1)

  • Updated Documentation URL in [project.urls] to correct docs page

README & Dependencies (commit 2)

  • Fixed CapiscioTool signature: uses keyword-only args (tool, *, identity=None, config=None, mode="block", api_key=None) not positional (tool, mode, identity, api_key)
  • Added pydantic>=2.0 to dependencies (directly imported in guard.py but was only transitively available)
  • Added note that langgraph is a separate install for the LCEL composition example
  • Fixed dead CONTRIBUTING.md link (file doesn't exist)

beonde added 2 commits May 2, 2026 11:11
Old URL docs.capisc.io/integrations/langchain returns 404.
Updated to actual published path at /how-to/integrations/langchain/.

Fixes: DOCS_REMEDIATION_PLAN P2-4
- CapiscioTool uses keyword-only args (*, identity, config, mode, api_key)
  not positional (tool, mode, identity, api_key). Fixed API reference.
- Added pydantic>=2.0 to dependencies (directly imported in guard.py).
- Added note that langgraph is a separate install for LCEL example.
- Fixed dead CONTRIBUTING.md link (file doesn't exist).

Fixes: DOCS_REMEDIATION_PLAN P2-11
Copilot AI review requested due to automatic review settings May 2, 2026 17:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects published package/docs metadata and README guidance so users get the right documentation links and accurate API/dependency information for langchain-capiscio.

Changes:

  • Add an explicit pydantic>=2.0 runtime dependency (directly imported by langchain_capiscio/guard.py).
  • Fix the PyPI Documentation URL in pyproject.toml.
  • Update README: clarify LangGraph as a separate install, correct CapiscioTool signature, and replace a dead contributing link.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Adds missing pydantic dependency and updates the project Documentation URL.
README.md Updates usage/docs text (LangGraph prereq note, CapiscioTool signature, contributing guidance).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines 253 to +255
### Tool Enforcement

- `CapiscioTool(tool, mode, identity, api_key)` — Wrap a LangChain `Tool` with trust enforcement
- `CapiscioTool(tool, *, identity=None, config=None, mode="block", api_key=None)` — Wrap a LangChain `Tool` with trust enforcement
@beonde beonde merged commit 2132283 into main May 2, 2026
9 checks passed
@beonde beonde deleted the fix/docs-p2-pypi-urls branch May 2, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants