+
    wi<                         R t ^ RIt^ RIHtHt ^ RIHtHtHtH	t	H
t
HtHt ^ RIHtHt  ! R R]]P                   4      tR# )z2Base classes and interfaces for FastMCP resources.N)	AnnotatedAny)AnyUrl	BaseModel
ConfigDictFieldUrlConstraintsValidationInfofield_validator)AnnotationsIconc                   J  a  ] tR t^t o Rt]! RR7      t]! RRR7      t]! RRR	7      t	]! R
RR	7      t
]! RRR	7      t]! RRRR7      t]! RRR7      t]! RRR7      t]! RRR7      t]! RRR7      ]V 3R lR l4       4       t]P(                  V 3R lR l4       tV 3R ltRtV tR# )ResourcezBase class for all resources.T)validate_default.zURI of the resource)defaultdescriptionzName of the resourceN)r   r   z$Human-readable title of the resourcezDescription of the resourcez
text/plainz!MIME type of the resource contentzG^[a-zA-Z0-9]+/[a-zA-Z0-9\-+.]+(;\s*[a-zA-Z0-9\-_.]+=[a-zA-Z0-9\-_.]+)*$)r   r   patternz(Optional list of icons for this resourcez%Optional annotations for the resourcez#Optional metadata for this resourcenamebefore)modec                :   < V ^8  d   QhRS[ R,          RS[RS[ /# )   r   Ninforeturn)strr	   )format__classdict__s   "U/home/ubuntu/.local/lib/python3.14/site-packages/mcp/server/fastmcp/resources/base.py__annotate__Resource.__annotate__'   s+     @ @C$J @n @ @    c                    V'       d   V# VP                   P                  R4      ;p'       d   \        V4      # \        R4      h)z*Set default name from URI if not provided.uriz#Either name or uri must be provided)datagetr   
ValueError)clsr   r   r"   s   &&& r   set_default_nameResource.set_default_name%   s9     K))--&&3&s8O>??r    c                0   < V ^8  d   QhRS[ S[,          /# )r   r   )r   bytes)r   r   s   "r   r   r   0   s      C%K r    c                   "   R# 5i)zRead the resource content.N )selfs   &r   readResource.read/   s
      	s   c                  < V ^8  d   Qh/ S[ S[S[! RR7      3,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[;R&   S[S[,          R,          ;R	&   S[R,          ;R
&   S[S[S[3,          R,          ;R&   # )r   F)host_requiredr"   Nr   titler   	mime_typeiconsannotationsmeta)	r   r   r   r   listr   r   dictr   )r   r   s   "r   r   r      s     
 
6>>>	?w  *N  :_  t\     :j  t#n   sCx.4
h! r    r,   )__name__
__module____qualname____firstlineno____doc__r   model_configr   r"   r   r2   r   r3   r4   r5   r6   r
   classmethodr'   abcabstractmethodr.   __annotate_func____static_attributes____classdictcell__)r   s   @r   r   r      s     't4LBGPSavBwC)?ND*PZ^_E#0MW[\K7ZI
  %T?ijE&+DFm&nK"'Bg"hDV(+@  ,@ 	 ;  r    r   )r=   r@   typingr   r   pydanticr   r   r   r   r   r	   r
   	mcp.typesr   r   ABCr   r,   r    r   <module>rI      s4    8 
 !   (y#'' r    