Skip to content

Resource

autogen.beta.mcp.resources.Resource dataclass #

Resource(uri, name, read, description=None, mime_type=None)

A static MCP resource exposed at a fixed uri.

read returns the body (str → text, bytes → binary) and may be sync or async. mime_type defaults per the MCP SDK (text/plain for text, application/octet-stream for bytes) when left None.

uri instance-attribute #

uri

name instance-attribute #

name

read instance-attribute #

read

description class-attribute instance-attribute #

description = None

mime_type class-attribute instance-attribute #

mime_type = None