Skip to content

ir.tools: agent-callable search surface (search / make_search)#70

Merged
thorwhalen merged 1 commit into
masterfrom
feat/tools-search
Jun 30, 2026
Merged

ir.tools: agent-callable search surface (search / make_search)#70
thorwhalen merged 1 commit into
masterfrom
feat/tools-search

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Adds ir.tools — a thin, MCP/HTTP-agnostic tool surface over ir.discover: search(query, *, corpus) -> discover().to_dict() (JSON-ready, corpus is a parameter so one function serves any corpus), and make_search(corpus) for a corpus-bound single-connector tool. ir stays free of MCP/connector deps; wrappers reference ir.tools:search. +3 tests. (Foundation for a reusable corpus→connector pipeline.)

A thin, MCP/HTTP-agnostic front door over ir.discover: search(query, *, corpus)
returns discover().to_dict() (JSON-ready), so any wrapper (py2mcp, qh, an agent
tool) can reference `ir.tools:search` and serve ANY corpus with no per-corpus
code. make_search(corpus) returns a corpus-bound, nicely-named tool for a
single-corpus connector. Top-level aliases ir.search_tool / ir.make_search
(search_tool avoids colliding with the existing ir.search facade). +3 tests.

Claude-Session: https://claude.ai/code/session_0154TnwYASjN1u1Hw97JQ2vd
@thorwhalen thorwhalen merged commit 02ecf25 into master Jun 30, 2026
12 checks passed
@thorwhalen thorwhalen deleted the feat/tools-search branch June 30, 2026 12:53
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.

1 participant