v0.2.1: reconcile GitHub main with published PyPI 0.2.0 surface#2
Open
TKCollective wants to merge 1 commit into
Open
v0.2.1: reconcile GitHub main with published PyPI 0.2.0 surface#2TKCollective wants to merge 1 commit into
TKCollective wants to merge 1 commit into
Conversation
The 0.2.0 wheel on PyPI exposes six tools, but GitHub main was still at v0.1 with a single AgentOracleTool. This commit pulls the full published source into the repo so main is the source of truth again, then applies a few targeted improvements on top. Surface (matches PyPI 0.2.0 + future 0.2.1): - AgentOracleEvaluateTool /evaluate $0.01 USDC - AgentOracleVerifyGateTool /verify-gate free (beta) - AgentOraclePreviewTool /preview free, 10/hr - AgentOracleResearchTool /research $0.02 USDC - AgentOracleDeepResearchTool /deep-research $0.10 USDC - AgentOracleBatchResearchTool /research/batch $0.02 USDC × N - get_agentoracle_tools(include_paid, include_free) convenience bundle Backwards compatibility: - AgentOracleTool (v0.1 name) remains exported, aliased to AgentOracleEvaluateTool — consistent with how 0.2.0 shipped. Targeted improvements over 0.2.0: - Prefer langchain_core.tools.BaseTool (modern LangChain import path), falling back to langchain.tools for older installs. - DEFAULT_TIMEOUT bumped 60s → 120s. Multi-source /evaluate runs 30-90s in practice; 60s was clipping tail latency during parallel invocation. - pyproject.toml: proper metadata (license, authors, classifiers, urls), deps pinned to langchain-core>=0.2.0 / pydantic>=2.0 / requests>=2.31. - .gitignore added; dist/ and egg-info/ dropped from tracking. - README rewritten to document all six tools and compatibility notes. Tested: reinstalled locally, all imports succeed, AgentOracleTool is AgentOracleEvaluateTool alias, get_agentoracle_tools() returns 6 tools with include_paid=True (default), 2 with include_paid=False. Live-tested against agentoracle.co with the tutorial's Pattern 1 payload — verdicts, adversarial tags, and corrections all return as expected. [REFUTED] substring gate fires correctly on the Bitcoin/Elon Musk claim. Ship plan after merge: tag v0.2.1, existing PyPI publish workflow fires on v* tags and uploads the new wheel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Pulls the full published
langchain-agentoracle0.2.0 source from PyPI intomain(which was still at v0.1), then applies targeted improvements on top, and bumps to0.2.1so the PyPI publish workflow can ship it.Why
PyPI 0.2.0 (uploaded 2026-04-16) exposes six tools. GitHub
mainexposed one (AgentOracleToolwrapping/preview). The drift meant:mainhad a stale picture of the library.AgentOracleDeepResearchToolorAgentOracleBatchResearchTool.Surface (after merge)
AgentOracleEvaluateTool/evaluateAgentOracleVerifyGateTool/verify-gateAgentOraclePreviewTool/previewAgentOracleResearchTool/researchAgentOracleDeepResearchTool/deep-researchAgentOracleBatchResearchTool/research/batchget_agentoracle_tools()Plus
AgentOracleToolas an alias ofAgentOracleEvaluateToolfor v0.1 compatibility — matches how 0.2.0 shipped.Targeted improvements over 0.2.0
langchain_core.tools.BaseToolpreferred (modern LangChain import),langchain.toolsfallback for older installs.DEFAULT_TIMEOUTbumped 60s → 120s. Multi-source/evaluateruns 30-90s in practice; 60s was clipping tail latency during parallel invocation (hit during the tutorial Pattern 2 test).pyproject.toml: license, authors, classifiers, project URLs, deps pinned tolangchain-core>=0.2.0/pydantic>=2.0/requests>=2.31..gitignoreadded;dist/and.egg-info/dropped from tracking.Verified
pip install -e .— all 7 exports import,AgentOracleTool is AgentOracleEvaluateToolis True,get_agentoracle_tools()returns 6 tools by default,include_paid=Falsereturns 2.agentoracle.cowith the reconciled package — verdicts, adversarial tags, corrections, and the[REFUTED]substring gate all return as documented.Ship plan
v0.2.1.release.ymlworkflow fires onv*tags and uploads the wheel.Dev.to tutorial tie-in
Tutorial install line is
pip install langchain-agentoracle crewai-agentoracle. Works today against published 0.2.0, continues to work after 0.2.1 publish. No publish-ordering risk for Thursday.