Skip to content

feat: add source and source_detail fields to ToolMetadata#130

Open
Oaklight wants to merge 1 commit intomasterfrom
feature/125-source-field
Open

feat: add source and source_detail fields to ToolMetadata#130
Oaklight wants to merge 1 commit intomasterfrom
feature/125-source-field

Conversation

@Oaklight
Copy link
Copy Markdown
Owner

Summary

  • Add source (str) and source_detail (str) fields to ToolMetadata for tracking tool provenance
  • Each integration automatically sets source during tool construction: "mcp", "openapi", "langchain", or "native" (default)
  • source_detail captures transport info (MCP), base URL + path (OpenAPI), or class name (LangChain)

Closes #125

Test plan

  • Native tools default to source="native", source_detail=""
  • MCP tools set source="mcp" with transport info in source_detail
  • OpenAPI tools set source="openapi" with URL in source_detail
  • LangChain tools set source="langchain" with class name in source_detail
  • All 850 existing tests pass

Add provenance tracking to tools:
- ToolMetadata.source: "native" (default), "mcp", "openapi", "langchain"
- ToolMetadata.source_detail: transport URI, spec URL, or class name
- Each integration sets source automatically during tool construction
@Oaklight Oaklight force-pushed the feature/125-source-field branch from 29d0802 to 8c2a078 Compare April 20, 2026 05:05
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.

feat: add source and source_detail fields to ToolMetadata

1 participant