Skip to content

Conversation

@ankit-raj00
Copy link

This change preserves MCP resource metadata (name and description) when converting resources into LangChain Blob objects.

Previously, resource metadata returned by session.list_resources() was discarded, making it unavailable downstream (e.g. for agent context, UI display, or debugging). This update enriches Blob.metadata in a backward-compatible way without modifying public APIs or function signatures.

No behavior changes occur for callers that do not rely on this metadata.

This change preserves MCP resource metadata (`name` and `description`) when converting
resources into LangChain Blob objects.

Previously, resource metadata returned by `session.list_resources()` was discarded,
making it unavailable downstream (e.g. for agent context, UI display, or debugging).
This update enriches Blob.metadata in a backward-compatible way without modifying
public APIs or function signatures.

No behavior changes occur for callers that do not rely on this metadata.
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