Skip to content

resources

Class info

Classes

Name Children Inherits
ResourceInfo
llmling_agent.models.resources
Information about an available resource.

    🛈 DocStrings

    Models for resource information.

    ResourceInfo dataclass

    Information about an available resource.

    This class provides essential information about a resource that can be loaded. Use the resource name with load_resource() to access the actual content.

    Source code in src/llmling_agent/models/resources.py
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    @dataclass
    class ResourceInfo:
        """Information about an available resource.
    
        This class provides essential information about a resource that can be loaded.
        Use the resource name with load_resource() to access the actual content.
        """
    
        name: str
        """Name of the resource, use this with load_resource()"""
    
        uri: str
        """URI identifying the resource location"""
    
        description: str | None = None
        """Optional description of the resource's content or purpose"""
    

    description class-attribute instance-attribute

    description: str | None = None
    

    Optional description of the resource's content or purpose

    name instance-attribute

    name: str
    

    Name of the resource, use this with load_resource()

    uri instance-attribute

    uri: str
    

    URI identifying the resource location