Skip to content

CompletionProvider

Sub classes

Name Children Inherits
PromptRegistry
llmling.prompts.registry
Registry for prompt templates.
    ResourceLoader
    llmling.resources.base
    Base class for resource loaders.

    Base classes

    Name Children Inherits
    Protocol
    typing
    Base class for protocol classes.

    ⋔ Inheritance diagram

    graph TD
      2180369605["protocols.CompletionProvider"]
      1073422405["typing.Protocol"]
      3481597255["typing.Generic"]
      2751680898["builtins.object"]
      1073422405 --> 2180369605
      3481597255 --> 1073422405
      2751680898 --> 3481597255

    🛈 DocStrings

    Bases: Protocol

    Protocol for completion providers.

    Source code in src/llmling/completions/protocols.py
    class CompletionProvider(Protocol):
        """Protocol for completion providers."""
    
        async def get_completions(
            self,
            current_value: str,
            argument_name: str | None = None,
            **options: Any,
        ) -> list[str]: ...
    

    :fa-brands-github: Show source on GitHub