Skip to content

models

Class info

Classes

Name Children Inherits
ApiAuthInfo
llmling_models.auth.models
API key authentication credentials.
    OAuthAuthInfo
    llmling_models.auth.models
    OAuth authentication credentials.
      ProviderAuthAuthorization
      llmling_models.auth.models
      Response from starting a provider OAuth flow.
        ProviderAuthMethod
        llmling_models.auth.models
        Authentication method for a provider.
          WellKnownAuthInfo
          llmling_models.auth.models
          Well-known authentication credentials.

            🛈 DocStrings

            Agent and command models.

            AuthInfo module-attribute

            Authentication credentials (discriminated union on 'type').

            ApiAuthInfo

            Bases: BaseModel

            API key authentication credentials.

            Source code in src/llmling_models/auth/models.py
            class ApiAuthInfo(BaseModel):
                """API key authentication credentials."""
            
                type: Literal["api"]
                """Auth type discriminator."""
            
                key: str
                """API key."""
            

            key instance-attribute

            key: str
            

            API key.

            type instance-attribute

            type: Literal['api']
            

            Auth type discriminator.

            OAuthAuthInfo

            Bases: BaseModel

            OAuth authentication credentials.

            Source code in src/llmling_models/auth/models.py
            class OAuthAuthInfo(BaseModel):
                """OAuth authentication credentials."""
            
                type: Literal["oauth"]
                """Auth type discriminator."""
            
                refresh: str
                """Refresh token."""
            
                access: str
                """Access token."""
            
                expires: int
                """Token expiry timestamp."""
            
                account_id: str | None = None
                """Optional account identifier."""
            
                enterprise_url: str | None = None
                """Optional enterprise URL."""
            

            access instance-attribute

            access: str
            

            Access token.

            account_id class-attribute instance-attribute

            account_id: str | None = None
            

            Optional account identifier.

            enterprise_url class-attribute instance-attribute

            enterprise_url: str | None = None
            

            Optional enterprise URL.

            expires instance-attribute

            expires: int
            

            Token expiry timestamp.

            refresh instance-attribute

            refresh: str
            

            Refresh token.

            type instance-attribute

            type: Literal['oauth']
            

            Auth type discriminator.

            ProviderAuthAuthorization

            Bases: BaseModel

            Response from starting a provider OAuth flow.

            Source code in src/llmling_models/auth/models.py
            class ProviderAuthAuthorization(BaseModel):
                """Response from starting a provider OAuth flow."""
            
                url: str
                """URL to open in browser for authorization."""
            
                method: Literal["auto", "code"]
                """Authorization method."""
            
                instructions: str
                """Instructions to display to the user."""
            

            instructions instance-attribute

            instructions: str
            

            Instructions to display to the user.

            method instance-attribute

            method: Literal['auto', 'code']
            

            Authorization method.

            url instance-attribute

            url: str
            

            URL to open in browser for authorization.

            ProviderAuthMethod

            Bases: BaseModel

            Authentication method for a provider.

            Source code in src/llmling_models/auth/models.py
            class ProviderAuthMethod(BaseModel):
                """Authentication method for a provider."""
            
                type: Literal["oauth", "api"]
                """Auth type."""
            
                label: str
                """Human-readable label for the auth method."""
            

            label instance-attribute

            label: str
            

            Human-readable label for the auth method.

            type instance-attribute

            type: Literal['oauth', 'api']
            

            Auth type.

            WellKnownAuthInfo

            Bases: BaseModel

            Well-known authentication credentials.

            Source code in src/llmling_models/auth/models.py
            class WellKnownAuthInfo(BaseModel):
                """Well-known authentication credentials."""
            
                type: Literal["wellknown"]
                """Auth type discriminator."""
            
                key: str
                """Key identifier."""
            
                token: str
                """Authentication token."""
            

            key instance-attribute

            key: str
            

            Key identifier.

            token instance-attribute

            token: str
            

            Authentication token.

            type instance-attribute

            type: Literal['wellknown']
            

            Auth type discriminator.