type stringclasses 5
values | name stringlengths 1 55 | qualified_name stringlengths 5 147 | docstring stringlengths 15 4.52k ⌀ | filepath stringclasses 206
values | is_public bool 2
classes | is_private bool 2
classes | line_start int64 0 1.99k ⌀ | line_end int64 0 2.01k ⌀ | annotation stringclasses 14
values | returns stringclasses 308
values | value stringclasses 152
values | parameters listlengths 0 117 ⌀ | bases listlengths 0 3 ⌀ | parent_class stringclasses 376
values | api_element_summary stringlengths 199 33.8k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
method | get_metrics | fenic._inference.embedding_model.EmbeddingModel.get_metrics | null | null | true | false | 43 | 44 | null | RMMetrics | null | [
"self"
] | null | EmbeddingModel | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.embedding_model.EmbeddingModel.get_metrics
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: RMMetrics
Parent Class: EmbeddingModel |
module | request_utils | fenic._inference.request_utils | Utilities for request processing and deduplication. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/request_utils.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: request_utils
Qualified Name: fenic._inference.request_utils
Docstring: Utilities for request processing and deduplication.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.request_utils.logger | null | null | true | false | 15 | 15 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.request_utils.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
function | validate_timeout | fenic._inference.request_utils.validate_timeout | Validate timeout value using Pydantic constraints. | null | true | false | 17 | 24 | null | Optional[float] | null | [
"value"
] | null | null | Type: function
Member Name: validate_timeout
Qualified Name: fenic._inference.request_utils.validate_timeout
Docstring: Validate timeout value using Pydantic constraints.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["value"]
Returns: Optional[float]
Parent Class: none |
attribute | TimeoutParam | fenic._inference.request_utils.TimeoutParam | null | null | true | false | 28 | 31 | null | null | Annotated[Optional[float], BeforeValidator(validate_timeout)] | null | null | null | Type: attribute
Member Name: TimeoutParam
Qualified Name: fenic._inference.request_utils.TimeoutParam
Docstring: none
Value: Annotated[Optional[float], BeforeValidator(validate_timeout)]
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
function | parse_openrouter_rate_limit_headers | fenic._inference.request_utils.parse_openrouter_rate_limit_headers | Parse OpenRouter rate limit headers into (rpm_hint, retry_at_epoch_seconds).
Assumptions for OpenRouter:
- "x-ratelimit-limit": integer RPM limit
- "x-ratelimit-reset": epoch in milliseconds (absolute time)
Returns (rpm_hint, retry_at_epoch_seconds). Missing/invalid values yield None. | null | true | false | 33 | 62 | null | tuple[int | None, float | None] | null | [
"headers"
] | null | null | Type: function
Member Name: parse_openrouter_rate_limit_headers
Qualified Name: fenic._inference.request_utils.parse_openrouter_rate_limit_headers
Docstring: Parse OpenRouter rate limit headers into (rpm_hint, retry_at_epoch_seconds).
Assumptions for OpenRouter:
- "x-ratelimit-limit": integer RPM limit
- "x-rateli... |
function | generate_completion_request_key | fenic._inference.request_utils.generate_completion_request_key | Generate a standard SHA256-based key for completion request deduplication.
Args:
request: Completion request to generate key for
Returns:
10-character SHA256 hash of the messages | null | true | false | 65 | 74 | null | str | null | [
"request"
] | null | null | Type: function
Member Name: generate_completion_request_key
Qualified Name: fenic._inference.request_utils.generate_completion_request_key
Docstring: Generate a standard SHA256-based key for completion request deduplication.
Args:
request: Completion request to generate key for
Returns:
10-character SHA256 ha... |
function | pdf_to_base64 | fenic._inference.request_utils.pdf_to_base64 | Encode PDF file content to base64.
Args:
file: LMRequestFile object
Returns:
Base64 encoded string of the PDF content (full file from disk or chunk in memory)
Raises:
FileNotFoundError: If the PDF file doesn't exist
IOError: If there's an error reading the file | null | true | false | 77 | 104 | null | bytes | null | [
"file"
] | null | null | Type: function
Member Name: pdf_to_base64
Qualified Name: fenic._inference.request_utils.pdf_to_base64
Docstring: Encode PDF file content to base64.
Args:
file: LMRequestFile object
Returns:
Base64 encoded string of the PDF content (full file from disk or chunk in memory)
Raises:
FileNotFoundError: If th... |
function | get_pdf_page_count | fenic._inference.request_utils.get_pdf_page_count | Get the page count of a PDF file. | null | true | false | 106 | 108 | null | int | null | [
"file"
] | null | null | Type: function
Member Name: get_pdf_page_count
Qualified Name: fenic._inference.request_utils.get_pdf_page_count
Docstring: Get the page count of a PDF file.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["file"]
Returns: int
Parent Class: none |
function | get_pdf_text | fenic._inference.request_utils.get_pdf_text | Extract text content from a PDF file. | null | true | false | 110 | 134 | null | str | null | [
"file"
] | null | null | Type: function
Member Name: get_pdf_text
Qualified Name: fenic._inference.request_utils.get_pdf_text
Docstring: Extract text content from a PDF file.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["file"]
Returns: str
Parent Class: none |
module | token_counter | fenic._inference.token_counter | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/token_counter.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: token_counter
Qualified Name: fenic._inference.token_counter
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | Tokenizable | fenic._inference.token_counter.Tokenizable | null | null | true | false | 10 | 10 | null | null | Union[str | LMRequestMessages] | null | null | null | Type: attribute
Member Name: Tokenizable
Qualified Name: fenic._inference.token_counter.Tokenizable
Docstring: none
Value: Union[str | LMRequestMessages]
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | TokenCounter | fenic._inference.token_counter.TokenCounter | null | null | true | false | 12 | 15 | null | null | null | null | [
"Protocol"
] | null | Type: class
Member Name: TokenCounter
Qualified Name: fenic._inference.token_counter.TokenCounter
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | count_tokens | fenic._inference.token_counter.TokenCounter.count_tokens | null | null | true | false | 13 | 13 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | TokenCounter | Type: method
Member Name: count_tokens
Qualified Name: fenic._inference.token_counter.TokenCounter.count_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages", "ignore_file"]
Returns: int
Parent Class: TokenCounter |
method | count_file_input_tokens | fenic._inference.token_counter.TokenCounter.count_file_input_tokens | null | null | true | false | 14 | 14 | null | int | null | [
"self",
"messages"
] | null | TokenCounter | Type: method
Member Name: count_file_input_tokens
Qualified Name: fenic._inference.token_counter.TokenCounter.count_file_input_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages"]
Returns: int
Parent Class: TokenCounter |
method | count_file_output_tokens | fenic._inference.token_counter.TokenCounter.count_file_output_tokens | null | null | true | false | 15 | 15 | null | int | null | [
"self",
"messages"
] | null | TokenCounter | Type: method
Member Name: count_file_output_tokens
Qualified Name: fenic._inference.token_counter.TokenCounter.count_file_output_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages"]
Returns: int
Parent Class: TokenCounter |
class | TiktokenTokenCounter | fenic._inference.token_counter.TiktokenTokenCounter | null | null | true | false | 17 | 75 | null | null | null | null | [
"TokenCounter"
] | null | Type: class
Member Name: TiktokenTokenCounter
Qualified Name: fenic._inference.token_counter.TiktokenTokenCounter
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.token_counter.TiktokenTokenCounter.__init__ | null | null | true | false | 19 | 23 | null | null | null | [
"self",
"model_name",
"fallback_encoding"
] | null | TiktokenTokenCounter | Type: method
Member Name: __init__
Qualified Name: fenic._inference.token_counter.TiktokenTokenCounter.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "model_name", "fallback_encoding"]
Returns: none
Parent Class: TiktokenTokenCounter |
method | count_tokens | fenic._inference.token_counter.TiktokenTokenCounter.count_tokens | null | null | true | false | 25 | 31 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | TiktokenTokenCounter | Type: method
Member Name: count_tokens
Qualified Name: fenic._inference.token_counter.TiktokenTokenCounter.count_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages", "ignore_file"]
Returns: int
Parent Class: TiktokenTokenCounter |
method | count_file_input_tokens | fenic._inference.token_counter.TiktokenTokenCounter.count_file_input_tokens | null | null | true | false | 33 | 45 | null | int | null | [
"self",
"messages"
] | null | TiktokenTokenCounter | Type: method
Member Name: count_file_input_tokens
Qualified Name: fenic._inference.token_counter.TiktokenTokenCounter.count_file_input_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages"]
Returns: int
Parent Class: TiktokenTokenCounter |
method | count_file_output_tokens | fenic._inference.token_counter.TiktokenTokenCounter.count_file_output_tokens | null | null | true | false | 47 | 56 | null | int | null | [
"self",
"messages"
] | null | TiktokenTokenCounter | Type: method
Member Name: count_file_output_tokens
Qualified Name: fenic._inference.token_counter.TiktokenTokenCounter.count_file_output_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages"]
Returns: int
Parent Class: TiktokenTokenCounter |
method | _count_message_tokens | fenic._inference.token_counter.TiktokenTokenCounter._count_message_tokens | null | null | false | true | 58 | 75 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | TiktokenTokenCounter | Type: method
Member Name: _count_message_tokens
Qualified Name: fenic._inference.token_counter.TiktokenTokenCounter._count_message_tokens
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "messages", "ignore_file"]
Returns: int
Parent Class: TiktokenTokenCounter |
module | model_client | fenic._inference.model_client | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/model_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: model_client
Qualified Name: fenic._inference.model_client
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | RequestT | fenic._inference.model_client.RequestT | null | null | true | false | 53 | 53 | null | null | TypeVar('RequestT', bound=(Union[FenicCompletionsRequest, FenicEmbeddingsRequest])) | null | null | null | Type: attribute
Member Name: RequestT
Qualified Name: fenic._inference.model_client.RequestT
Docstring: none
Value: TypeVar('RequestT', bound=(Union[FenicCompletionsRequest, FenicEmbeddingsRequest]))
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | ResponseT | fenic._inference.model_client.ResponseT | null | null | true | false | 54 | 54 | null | null | TypeVar('ResponseT', bound=(Union[FenicCompletionsResponse, list[float]])) | null | null | null | Type: attribute
Member Name: ResponseT
Qualified Name: fenic._inference.model_client.ResponseT
Docstring: none
Value: TypeVar('ResponseT', bound=(Union[FenicCompletionsResponse, list[float]]))
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.model_client.logger | null | null | true | false | 56 | 56 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.model_client.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | TransientException | fenic._inference.model_client.TransientException | Represents an exception that might be resolved with a retry. | null | true | false | 60 | 64 | null | null | null | null | [] | null | Type: class
Member Name: TransientException
Qualified Name: fenic._inference.model_client.TransientException
Docstring: Represents an exception that might be resolved with a retry.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.model_client.TransientException.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"exception"
] | null | TransientException | Type: method
Member Name: __init__
Qualified Name: fenic._inference.model_client.TransientException.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "exception"]
Returns: None
Parent Class: TransientException |
class | FatalException | fenic._inference.model_client.FatalException | Represents an exception that is unlikely to be resolved with retries. | null | true | false | 67 | 71 | null | null | null | null | [] | null | Type: class
Member Name: FatalException
Qualified Name: fenic._inference.model_client.FatalException
Docstring: Represents an exception that is unlikely to be resolved with retries.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.model_client.FatalException.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"exception"
] | null | FatalException | Type: method
Member Name: __init__
Qualified Name: fenic._inference.model_client.FatalException.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "exception"]
Returns: None
Parent Class: FatalException |
class | QueueItem | fenic._inference.model_client.QueueItem | Represents an item in the request queue. | null | true | false | 74 | 84 | null | null | null | null | [
"Generic[RequestT]"
] | null | Type: class
Member Name: QueueItem
Qualified Name: fenic._inference.model_client.QueueItem
Docstring: Represents an item in the request queue.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.model_client.QueueItem.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"thread_id",
"request",
"future",
"estimated_tokens",
"batch_id",
"request_timeout",
"request_fingerprint"
] | null | QueueItem | Type: method
Member Name: __init__
Qualified Name: fenic._inference.model_client.QueueItem.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "thread_id", "request", "future", "estimated_tokens", "batch_id", "request_timeout", "request_fingerprint"]
Returns:... |
class | ModelClient | fenic._inference.model_client.ModelClient | Base client for interacting with language and embedding models.
This abstract base class provides a robust framework for interacting with language models,
handling rate limiting, request queuing, retries, and deduplication. It manages concurrent
requests efficiently using an asynchronous event loop and implements toke... | null | true | false | 87 | 961 | null | null | null | null | [
"Generic[RequestT, ResponseT]",
"ABC"
] | null | Type: class
Member Name: ModelClient
Qualified Name: fenic._inference.model_client.ModelClient
Docstring: Base client for interacting with language and embedding models.
This abstract base class provides a robust framework for interacting with language models,
handling rate limiting, request queuing, retries, and dedu... |
method | __init__ | fenic._inference.model_client.ModelClient.__init__ | Initialize the ModelClient with configuration for model interaction.
Args:
model: The name or identifier of the model
model_provider: The model provider (OPENAI, ANTHROPIC)
model_provider_class: The model provider class (OpenAIModelProvider, AnthropicModelProvider, etc.)
alias: The Model Client's alias... | null | true | false | 106 | 177 | null | null | null | [
"self",
"model",
"model_provider",
"model_provider_class",
"rate_limit_strategy",
"token_counter",
"queue_size",
"initial_backoff_seconds",
"backoff_factor",
"max_backoffs",
"cache",
"adaptive_estimation"
] | null | ModelClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.model_client.ModelClient.__init__
Docstring: Initialize the ModelClient with configuration for model interaction.
Args:
model: The name or identifier of the model
model_provider: The model provider (OPENAI, ANTHROPIC)
model_provider_class:... |
method | make_single_request | fenic._inference.model_client.ModelClient.make_single_request | Make a single API call to the language model.
This method must be implemented by subclasses to handle the actual API communication
with the language model provider.
Args:
request: The request data to send to the model
Returns:
Union[None, ResponseT, TransientException, FatalException]: The API response,
... | null | true | false | 179 | 196 | null | Union[None, ResponseT, TransientException, FatalException] | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.model_client.ModelClient.make_single_request
Docstring: Make a single API call to the language model.
This method must be implemented by subclasses to handle the actual API communication
with the language model provider.
Args:
request:... |
method | estimate_tokens_for_request | fenic._inference.model_client.ModelClient.estimate_tokens_for_request | Estimate the token usage for a given request.
This method must be implemented by subclasses to accurately predict token usage
for both input and output tokens.
Args:
request: The request to estimate tokens for
Returns:
TokenEstimate: Object containing estimated input and output tokens | null | true | false | 198 | 211 | null | TokenEstimate | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.model_client.ModelClient.estimate_tokens_for_request
Docstring: Estimate the token usage for a given request.
This method must be implemented by subclasses to accurately predict token usage
for both input and output tokens.
Args:
... |
method | count_tokens | fenic._inference.model_client.ModelClient.count_tokens | Count the number of tokens in a tokenizable object.
Args:
messages: The tokenizable object to count tokens for
ignore_file: If True, skip counting file tokens
Returns:
int: The number of tokens in the object | null | true | false | 213 | 223 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | ModelClient | Type: method
Member Name: count_tokens
Qualified Name: fenic._inference.model_client.ModelClient.count_tokens
Docstring: Count the number of tokens in a tokenizable object.
Args:
messages: The tokenizable object to count tokens for
ignore_file: If True, skip counting file tokens
Returns:
int: The number o... |
method | get_profile_hash_for_request | fenic._inference.model_client.ModelClient.get_profile_hash_for_request | Get a hash of the resolved profile configuration for a request.
Args:
request: The request to generate a key for
Returns:
A hash string representing the profile configuration, or None if not found/supported. | null | true | false | 225 | 233 | null | Optional[str] | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: get_profile_hash_for_request
Qualified Name: fenic._inference.model_client.ModelClient.get_profile_hash_for_request
Docstring: Get a hash of the resolved profile configuration for a request.
Args:
request: The request to generate a key for
Returns:
A hash string representing the profi... |
method | get_profile_hash | fenic._inference.model_client.ModelClient.get_profile_hash | Get a hash of the resolved profile configuration.
Args:
profile_name: The name of the profile to look up.
Returns:
A hash string representing the profile configuration, or None if not found/supported. | null | true | false | 235 | 244 | null | Optional[str] | null | [
"self",
"profile_name"
] | null | ModelClient | Type: method
Member Name: get_profile_hash
Qualified Name: fenic._inference.model_client.ModelClient.get_profile_hash
Docstring: Get a hash of the resolved profile configuration.
Args:
profile_name: The name of the profile to look up.
Returns:
A hash string representing the profile configuration, or None if n... |
method | _build_request_key | fenic._inference.model_client.ModelClient._build_request_key | Build the canonical cache/deduplication key for a request. | null | false | true | 246 | 250 | null | str | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: _build_request_key
Qualified Name: fenic._inference.model_client.ModelClient._build_request_key
Docstring: Build the canonical cache/deduplication key for a request.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "request"]
Returns: str
Parent Class: Mo... |
method | _safe_build_request_key | fenic._inference.model_client.ModelClient._safe_build_request_key | Best-effort request key computation that never raises. | null | false | true | 252 | 272 | null | Optional[str] | null | [
"self",
"request",
"request_index"
] | null | ModelClient | Type: method
Member Name: _safe_build_request_key
Qualified Name: fenic._inference.model_client.ModelClient._safe_build_request_key
Docstring: Best-effort request key computation that never raises.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "request", "request_index"]
Return... |
method | get_request_key | fenic._inference.model_client.ModelClient.get_request_key | Public helper for generating request keys outside the cache path. | null | true | false | 274 | 276 | null | str | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: get_request_key
Qualified Name: fenic._inference.model_client.ModelClient.get_request_key
Docstring: Public helper for generating request keys outside the cache path.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "request"]
Returns: str
Parent Class: M... |
method | get_metrics | fenic._inference.model_client.ModelClient.get_metrics | Get the current metrics for this model client.
Returns:
LMMetrics: The current metrics for this client | null | true | false | 278 | 285 | null | LMMetrics | null | [
"self"
] | null | ModelClient | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.model_client.ModelClient.get_metrics
Docstring: Get the current metrics for this model client.
Returns:
LMMetrics: The current metrics for this client
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Retur... |
method | reset_metrics | fenic._inference.model_client.ModelClient.reset_metrics | Reset all metrics for this model client to their initial values. | null | true | false | 287 | 290 | null | null | null | [
"self"
] | null | ModelClient | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.model_client.ModelClient.reset_metrics
Docstring: Reset all metrics for this model client to their initial values.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: ModelClient |
method | _estimator_key | fenic._inference.model_client.ModelClient._estimator_key | Key for the output-token estimator.
``(profile_hash, max_completion_tokens, schema_fingerprint)``.
``max_completion_tokens`` is a free per-request proxy for operator shape —
most operators already differ in it (``semantic.map`` 512, ``extract`` 1024,
``parse`` None). ``schema_fingerprint`` (present on every structure... | null | false | true | 292 | 328 | null | tuple[Optional[str], Optional[int], Optional[str]] | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: _estimator_key
Qualified Name: fenic._inference.model_client.ModelClient._estimator_key
Docstring: Key for the output-token estimator.
``(profile_hash, max_completion_tokens, schema_fingerprint)``.
``max_completion_tokens`` is a free per-request proxy for operator shape —
most operators alre... |
method | _adaptive_output_reservation | fenic._inference.model_client.ModelClient._adaptive_output_reservation | Learned output-token reservation, clamped to the static ceiling. | null | false | true | 330 | 338 | null | int | null | [
"self",
"request",
"static_ceiling",
"reasoning"
] | null | ModelClient | Type: method
Member Name: _adaptive_output_reservation
Qualified Name: fenic._inference.model_client.ModelClient._adaptive_output_reservation
Docstring: Learned output-token reservation, clamped to the static ceiling.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "request", "st... |
method | _reconcile_completion | fenic._inference.model_client.ModelClient._reconcile_completion | Feed actuals to the estimator and settle the bucket after a response.
Event-loop thread only (called from _handle_response). Skips dedup hits
that reserved nothing. This is opportunistic post-success bookkeeping, so
any failure here is logged and swallowed — it must never fail a request
that already succeeded.
Settle... | null | false | true | 340 | 379 | null | None | null | [
"self",
"request",
"reserved",
"usage"
] | null | ModelClient | Type: method
Member Name: _reconcile_completion
Qualified Name: fenic._inference.model_client.ModelClient._reconcile_completion
Docstring: Feed actuals to the estimator and settle the bucket after a response.
Event-loop thread only (called from _handle_response). Skips dedup hits
that reserved nothing. This is opportu... |
method | _count_auxiliary_input_tokens | fenic._inference.model_client.ModelClient._count_auxiliary_input_tokens | Count extra input tokens for structured output, tools, etc. Override as needed. | null | false | true | 381 | 385 | null | int | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: _count_auxiliary_input_tokens
Qualified Name: fenic._inference.model_client.ModelClient._count_auxiliary_input_tokens
Docstring: Count extra input tokens for structured output, tools, etc. Override as needed.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self... |
method | _estimate_structured_output_overhead | fenic._inference.model_client.ModelClient._estimate_structured_output_overhead | Default structured output token estimation. Override for provider-specific logic. | null | false | true | 387 | 393 | null | int | null | [
"self",
"response_format"
] | null | ModelClient | Type: method
Member Name: _estimate_structured_output_overhead
Qualified Name: fenic._inference.model_client.ModelClient._estimate_structured_output_overhead
Docstring: Default structured output token estimation. Override for provider-specific logic.
Value: none
Annotation: none
is Public? : false
is Private? : true
Pa... |
method | _get_max_output_token_request_limit | fenic._inference.model_client.ModelClient._get_max_output_token_request_limit | Get the upper limit of output tokens to set on a request. | null | false | true | 395 | 398 | null | int | null | [
"self",
"request"
] | null | ModelClient | Type: method
Member Name: _get_max_output_token_request_limit
Qualified Name: fenic._inference.model_client.ModelClient._get_max_output_token_request_limit
Docstring: Get the upper limit of output tokens to set on a request.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "reques... |
method | shutdown | fenic._inference.model_client.ModelClient.shutdown | Shut down the model client and clean up resources.
This method:
1. Cancels all pending and in-flight requests
2. Unregisters the client from the ModelClientManager
3. Cleans up all associated resources
4. Ensures all threads are properly notified of the shutdown | null | true | false | 403 | 439 | null | null | null | [
"self"
] | null | ModelClient | Type: method
Member Name: shutdown
Qualified Name: fenic._inference.model_client.ModelClient.shutdown
Docstring: Shut down the model client and clean up resources.
This method:
1. Cancels all pending and in-flight requests
2. Unregisters the client from the ModelClientManager
3. Cleans up all associated resources
4. E... |
method | make_batch_requests | fenic._inference.model_client.ModelClient.make_batch_requests | Submit and process a batch of requests asynchronously.
This method handles the submission and processing of multiple requests in parallel,
with automatic deduplication and rate limiting. It provides progress tracking
and handles empty requests appropriately.
Args:
requests: List of requests to process. None entri... | null | true | false | 441 | 465 | null | List[ResponseT] | null | [
"self",
"requests",
"operation_name",
"request_timeout"
] | null | ModelClient | Type: method
Member Name: make_batch_requests
Qualified Name: fenic._inference.model_client.ModelClient.make_batch_requests
Docstring: Submit and process a batch of requests asynchronously.
This method handles the submission and processing of multiple requests in parallel,
with automatic deduplication and rate limitin... |
method | _get_or_create_request_future | fenic._inference.model_client.ModelClient._get_or_create_request_future | Retrieves an existing future for a duplicate request or creates a new one.
Args:
unique_futures: A dictionary mapping request keys to their futures.
request: The current request being processed.
Returns:
A tuple of the future for the request and the estimated number of tokens (0 for duplicates). | null | false | true | 470 | 522 | null | tuple[Future, TokenEstimate | None] | null | [
"self",
"unique_futures",
"request",
"request_key"
] | null | ModelClient | Type: method
Member Name: _get_or_create_request_future
Qualified Name: fenic._inference.model_client.ModelClient._get_or_create_request_future
Docstring: Retrieves an existing future for a duplicate request or creates a new one.
Args:
unique_futures: A dictionary mapping request keys to their futures.
request... |
method | _maybe_raise_thread_exception | fenic._inference.model_client.ModelClient._maybe_raise_thread_exception | Surface exceptions from event loop to calling thread immediately. | null | false | true | 524 | 529 | null | null | null | [
"self"
] | null | ModelClient | Type: method
Member Name: _maybe_raise_thread_exception
Qualified Name: fenic._inference.model_client.ModelClient._maybe_raise_thread_exception
Docstring: Surface exceptions from event loop to calling thread immediately.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self"]
Returns: no... |
method | _calculate_backoff_time | fenic._inference.model_client.ModelClient._calculate_backoff_time | Calculates the backoff duration using exponential backoff with a maximum limit.
Args:
backoff_iteration: The current backoff iteration.
Returns:
The backoff time in seconds. | null | false | true | 531 | 543 | null | float | null | [
"self",
"backoff_iteration"
] | null | ModelClient | Type: method
Member Name: _calculate_backoff_time
Qualified Name: fenic._inference.model_client.ModelClient._calculate_backoff_time
Docstring: Calculates the backoff duration using exponential backoff with a maximum limit.
Args:
backoff_iteration: The current backoff iteration.
Returns:
The backoff time in se... |
method | _check_and_consume_rate_limit | fenic._inference.model_client.ModelClient._check_and_consume_rate_limit | Checks if there is enough capacity in both the token and request rate limit buckets,
and consumes the capacity if so.
Args:
token_amount: A TokenEstimate object containing the estimated input, output, and total tokens.
Returns:
True if there was enough capacity and it was consumed, False otherwise. | null | false | true | 545 | 555 | null | bool | null | [
"self",
"token_amount"
] | null | ModelClient | Type: method
Member Name: _check_and_consume_rate_limit
Qualified Name: fenic._inference.model_client.ModelClient._check_and_consume_rate_limit
Docstring: Checks if there is enough capacity in both the token and request rate limit buckets,
and consumes the capacity if so.
Args:
token_amount: A TokenEstimate object... |
method | _enqueue_request | fenic._inference.model_client.ModelClient._enqueue_request | Enqueue a request to be processed.
Args:
queue_item: The queue item to enqueue. | null | false | true | 557 | 563 | null | null | null | [
"self",
"queue_item"
] | null | ModelClient | Type: method
Member Name: _enqueue_request
Qualified Name: fenic._inference.model_client.ModelClient._enqueue_request
Docstring: Enqueue a request to be processed.
Args:
queue_item: The queue item to enqueue.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "queue_item"]
Retu... |
method | _make_batch_requests | fenic._inference.model_client.ModelClient._make_batch_requests | Standard batch processing without sampling (used by both sampling and non-sampling flows). | null | false | true | 566 | 595 | null | List[ResponseT] | null | [
"self",
"requests",
"operation_name",
"batch_id",
"request_timeout"
] | null | ModelClient | Type: method
Member Name: _make_batch_requests
Qualified Name: fenic._inference.model_client.ModelClient._make_batch_requests
Docstring: Standard batch processing without sampling (used by both sampling and non-sampling flows).
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "req... |
method | _submit_batch_requests | fenic._inference.model_client.ModelClient._submit_batch_requests | Submit all requests in a batch and return futures, unique request count, and token estimate.
Args:
requests: List of requests to submit
batch_id: Batch identifier for tracking
request_timeout: Timeout for each request in the batch in seconds
Returns:
Tuple of (request_futures, num_unique_requests, tota... | null | false | true | 597 | 722 | null | tuple[List[Future], int, TokenEstimate] | null | [
"self",
"requests",
"batch_id",
"request_timeout"
] | null | ModelClient | Type: method
Member Name: _submit_batch_requests
Qualified Name: fenic._inference.model_client.ModelClient._submit_batch_requests
Docstring: Submit all requests in a batch and return futures, unique request count, and token estimate.
Args:
requests: List of requests to submit
batch_id: Batch identifier for tra... |
method | _collect_batch_responses | fenic._inference.model_client.ModelClient._collect_batch_responses | Collect responses from all request futures with progress tracking.
Args:
request_futures: List of futures to wait for
batch_id: Batch identifier for logging
Returns:
List of responses in same order as input futures | null | false | true | 724 | 746 | null | List[ResponseT] | null | [
"self",
"request_futures",
"batch_id"
] | null | ModelClient | Type: method
Member Name: _collect_batch_responses
Qualified Name: fenic._inference.model_client.ModelClient._collect_batch_responses
Docstring: Collect responses from all request futures with progress tracking.
Args:
request_futures: List of futures to wait for
batch_id: Batch identifier for logging
Returns:... |
method | _process_queue | fenic._inference.model_client.ModelClient._process_queue | Continuously processes requests from the request and retry queues. This method runs on the shared asyncio event loop. | null | false | true | 751 | 792 | null | null | null | [
"self"
] | null | ModelClient | Type: method
Member Name: _process_queue
Qualified Name: fenic._inference.model_client.ModelClient._process_queue
Docstring: Continuously processes requests from the request and retry queues. This method runs on the shared asyncio event loop.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters... |
method | _process_single_request | fenic._inference.model_client.ModelClient._process_single_request | Process a single request from the queues.
Args:
queue_item: The queue item to process. | null | false | true | 794 | 821 | null | null | null | [
"self",
"queue_item"
] | null | ModelClient | Type: method
Member Name: _process_single_request
Qualified Name: fenic._inference.model_client.ModelClient._process_single_request
Docstring: Process a single request from the queues.
Args:
queue_item: The queue item to process.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self... |
method | _handle_response | fenic._inference.model_client.ModelClient._handle_response | Handle the response from a request, including retrying if necessary.
Args:
queue_item: The queue item associated with the request.
maybe_response: The response or exception from the request. | null | false | true | 823 | 882 | null | null | null | [
"self",
"queue_item",
"maybe_response"
] | null | ModelClient | Type: method
Member Name: _handle_response
Qualified Name: fenic._inference.model_client.ModelClient._handle_response
Docstring: Handle the response from a request, including retrying if necessary.
Args:
queue_item: The queue item associated with the request.
maybe_response: The response or exception from the ... |
method | _maybe_backoff | fenic._inference.model_client.ModelClient._maybe_backoff | Manages the backoff period after encountering a transient exception. | null | false | true | 884 | 900 | null | null | null | [
"self"
] | null | ModelClient | Type: method
Member Name: _maybe_backoff
Qualified Name: fenic._inference.model_client.ModelClient._maybe_backoff
Docstring: Manages the backoff period after encountering a transient exception.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self"]
Returns: none
Parent Class: ModelClien... |
method | _get_queued_requests | fenic._inference.model_client.ModelClient._get_queued_requests | Asynchronously retrieves items from the retry queue or the request queue,
prioritizing the retry queue. Returns None if a shutdown is signaled.
Returns:
A list of queue items, or None if a shutdown is signaled. | null | false | true | 902 | 931 | null | List[QueueItem[RequestT]] | null | [
"self"
] | null | ModelClient | Type: method
Member Name: _get_queued_requests
Qualified Name: fenic._inference.model_client.ModelClient._get_queued_requests
Docstring: Asynchronously retrieves items from the retry queue or the request queue,
prioritizing the retry queue. Returns None if a shutdown is signaled.
Returns:
A list of queue items, or... |
method | _track_inflight_task | fenic._inference.model_client.ModelClient._track_inflight_task | Adds a task to the set of inflight requests and removes it upon completion.
Args:
task: The task to track. | null | false | true | 933 | 940 | null | null | null | [
"self",
"task"
] | null | ModelClient | Type: method
Member Name: _track_inflight_task
Qualified Name: fenic._inference.model_client.ModelClient._track_inflight_task
Docstring: Adds a task to the set of inflight requests and removes it upon completion.
Args:
task: The task to track.
Value: none
Annotation: none
is Public? : false
is Private? : true
Para... |
method | _register_thread_exception | fenic._inference.model_client.ModelClient._register_thread_exception | Registers an exception that occurred on the event loop to be raised in the originating thread.
Args:
queue_item: The queue item associated with the exception.
exception: The exception that occurred. | null | false | true | 942 | 955 | null | null | null | [
"self",
"queue_item",
"exception"
] | null | ModelClient | Type: method
Member Name: _register_thread_exception
Qualified Name: fenic._inference.model_client.ModelClient._register_thread_exception
Docstring: Registers an exception that occurred on the event loop to be raised in the originating thread.
Args:
queue_item: The queue item associated with the exception.
exc... |
method | _cancel_in_flight_requests | fenic._inference.model_client.ModelClient._cancel_in_flight_requests | Cancels all inflight tasks and gathers their results. | null | false | true | 957 | 961 | null | null | null | [
"self"
] | null | ModelClient | Type: method
Member Name: _cancel_in_flight_requests
Qualified Name: fenic._inference.model_client.ModelClient._cancel_in_flight_requests
Docstring: Cancels all inflight tasks and gathers their results.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self"]
Returns: none
Parent Class: M... |
module | output_token_estimator | fenic._inference.output_token_estimator | Adaptive output-token reservation estimator.
Learns the distribution of ACTUAL output tokens (completion + thinking) per
(profile_hash, max_completion_tokens) key and returns a high-quantile reservation
for the rate limiter, always clamped to the caller-supplied static ceiling (which
equals the provider's max_tokens c... | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/output_token_estimator.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: output_token_estimator
Qualified Name: fenic._inference.output_token_estimator
Docstring: Adaptive output-token reservation estimator.
Learns the distribution of ACTUAL output tokens (completion + thinking) per
(profile_hash, max_completion_tokens) key and returns a high-quantile reservation
... |
attribute | _DEFAULT_QUANTILE | fenic._inference.output_token_estimator._DEFAULT_QUANTILE | null | null | false | true | 15 | 15 | null | null | 0.95 | null | null | null | Type: attribute
Member Name: _DEFAULT_QUANTILE
Qualified Name: fenic._inference.output_token_estimator._DEFAULT_QUANTILE
Docstring: none
Value: 0.95
Annotation: none
is Public? : false
is Private? : true
Parameters: none
Returns: none
Parent Class: none |
attribute | _REASONING_QUANTILE | fenic._inference.output_token_estimator._REASONING_QUANTILE | null | null | false | true | 16 | 16 | null | null | 0.99 | null | null | null | Type: attribute
Member Name: _REASONING_QUANTILE
Qualified Name: fenic._inference.output_token_estimator._REASONING_QUANTILE
Docstring: none
Value: 0.99
Annotation: none
is Public? : false
is Private? : true
Parameters: none
Returns: none
Parent Class: none |
function | _quantile | fenic._inference.output_token_estimator._quantile | Linear-interpolation quantile of an already-sorted, non-empty list. | null | false | true | 19 | 28 | null | float | null | [
"sorted_vals",
"q"
] | null | null | Type: function
Member Name: _quantile
Qualified Name: fenic._inference.output_token_estimator._quantile
Docstring: Linear-interpolation quantile of an already-sorted, non-empty list.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["sorted_vals", "q"]
Returns: float
Parent Class: none |
class | OutputTokenEstimator | fenic._inference.output_token_estimator.OutputTokenEstimator | Per-client learned output-token reservation. | null | true | false | 31 | 74 | null | null | null | null | [] | null | Type: class
Member Name: OutputTokenEstimator
Qualified Name: fenic._inference.output_token_estimator.OutputTokenEstimator
Docstring: Per-client learned output-token reservation.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.output_token_estimator.OutputTokenEstimator.__init__ | null | null | true | false | 34 | 48 | null | null | null | [
"self",
"enabled",
"safety_margin",
"min_samples",
"window"
] | null | OutputTokenEstimator | Type: method
Member Name: __init__
Qualified Name: fenic._inference.output_token_estimator.OutputTokenEstimator.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "enabled", "safety_margin", "min_samples", "window"]
Returns: none
Parent Class: OutputTokenEst... |
method | reserve | fenic._inference.output_token_estimator.OutputTokenEstimator.reserve | Output-token reservation in [1, static_ceiling] (or the ceiling itself when <= 0).
A non-positive ceiling (e.g. max_completion_tokens=None with no file
estimate) is preserved as-is so behavior matches the static path exactly. | null | true | false | 50 | 67 | null | int | null | [
"self",
"key",
"static_ceiling",
"reasoning"
] | null | OutputTokenEstimator | Type: method
Member Name: reserve
Qualified Name: fenic._inference.output_token_estimator.OutputTokenEstimator.reserve
Docstring: Output-token reservation in [1, static_ceiling] (or the ceiling itself when <= 0).
A non-positive ceiling (e.g. max_completion_tokens=None with no file
estimate) is preserved as-is so behav... |
method | observe | fenic._inference.output_token_estimator.OutputTokenEstimator.observe | Record an actual output-token count for `key`. | null | true | false | 69 | 74 | null | None | null | [
"self",
"key",
"actual_output_tokens"
] | null | OutputTokenEstimator | Type: method
Member Name: observe
Qualified Name: fenic._inference.output_token_estimator.OutputTokenEstimator.observe
Docstring: Record an actual output-token count for `key`.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "key", "actual_output_tokens"]
Returns: None
Parent Cla... |
module | types | fenic._inference.types | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/types.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: types
Qualified Name: fenic._inference.types
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | FewShotExample | fenic._inference.types.FewShotExample | null | null | true | false | 10 | 13 | null | null | null | null | [] | null | Type: class
Member Name: FewShotExample
Qualified Name: fenic._inference.types.FewShotExample
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.types.FewShotExample.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"user",
"assistant"
] | null | FewShotExample | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.FewShotExample.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "user", "assistant"]
Returns: None
Parent Class: FewShotExample |
class | LMRequestFile | fenic._inference.types.LMRequestFile | null | null | true | false | 15 | 25 | null | null | null | null | [] | null | Type: class
Member Name: LMRequestFile
Qualified Name: fenic._inference.types.LMRequestFile
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | encode | fenic._inference.types.LMRequestFile.encode | null | null | true | false | 20 | 25 | null | bytes | null | [
"self"
] | null | LMRequestFile | Type: method
Member Name: encode
Qualified Name: fenic._inference.types.LMRequestFile.encode
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: bytes
Parent Class: LMRequestFile |
method | __init__ | fenic._inference.types.LMRequestFile.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"path",
"page_range",
"pdf_chunk_bytes"
] | null | LMRequestFile | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.LMRequestFile.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "path", "page_range", "pdf_chunk_bytes"]
Returns: None
Parent Class: LMRequestFile |
class | LMRequestMessages | fenic._inference.types.LMRequestMessages | null | null | true | false | 27 | 45 | null | null | null | null | [] | null | Type: class
Member Name: LMRequestMessages
Qualified Name: fenic._inference.types.LMRequestMessages
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | encode | fenic._inference.types.LMRequestMessages.encode | null | null | true | false | 34 | 45 | null | bytes | null | [
"self"
] | null | LMRequestMessages | Type: method
Member Name: encode
Qualified Name: fenic._inference.types.LMRequestMessages.encode
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: bytes
Parent Class: LMRequestMessages |
method | __init__ | fenic._inference.types.LMRequestMessages.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"system",
"examples",
"user",
"user_file"
] | null | LMRequestMessages | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.LMRequestMessages.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "system", "examples", "user", "user_file"]
Returns: None
Parent Class: LMRequestMessages |
class | ResponseUsage | fenic._inference.types.ResponseUsage | Token usage information from API response. | null | true | false | 48 | 55 | null | null | null | null | [] | null | Type: class
Member Name: ResponseUsage
Qualified Name: fenic._inference.types.ResponseUsage
Docstring: Token usage information from API response.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.types.ResponseUsage.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"prompt_tokens",
"completion_tokens",
"total_tokens",
"cached_tokens",
"thinking_tokens"
] | null | ResponseUsage | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.ResponseUsage.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "prompt_tokens", "completion_tokens", "total_tokens", "cached_tokens", "thinking_tokens"]
Returns: None
Parent Class: R... |
class | FenicCompletionsResponse | fenic._inference.types.FenicCompletionsResponse | null | null | true | false | 57 | 61 | null | null | null | null | [] | null | Type: class
Member Name: FenicCompletionsResponse
Qualified Name: fenic._inference.types.FenicCompletionsResponse
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.types.FenicCompletionsResponse.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"completion",
"logprobs",
"usage"
] | null | FenicCompletionsResponse | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.FenicCompletionsResponse.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "completion", "logprobs", "usage"]
Returns: None
Parent Class: FenicCompletionsResponse |
class | FenicCompletionsRequest | fenic._inference.types.FenicCompletionsRequest | null | null | true | false | 64 | 71 | null | null | null | null | [] | null | Type: class
Member Name: FenicCompletionsRequest
Qualified Name: fenic._inference.types.FenicCompletionsRequest
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.types.FenicCompletionsRequest.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"messages",
"max_completion_tokens",
"top_logprobs",
"structured_output",
"temperature",
"model_profile"
] | null | FenicCompletionsRequest | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.FenicCompletionsRequest.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages", "max_completion_tokens", "top_logprobs", "structured_output", "temperature", "model_profile"]
Ret... |
class | FenicEmbeddingsRequest | fenic._inference.types.FenicEmbeddingsRequest | null | null | true | false | 73 | 76 | null | null | null | null | [] | null | Type: class
Member Name: FenicEmbeddingsRequest
Qualified Name: fenic._inference.types.FenicEmbeddingsRequest
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.types.FenicEmbeddingsRequest.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"doc",
"model_profile"
] | null | FenicEmbeddingsRequest | Type: method
Member Name: __init__
Qualified Name: fenic._inference.types.FenicEmbeddingsRequest.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "doc", "model_profile"]
Returns: None
Parent Class: FenicEmbeddingsRequest |
module | rate_limit_strategy | fenic._inference.rate_limit_strategy | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/rate_limit_strategy.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: rate_limit_strategy
Qualified Name: fenic._inference.rate_limit_strategy
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.rate_limit_strategy.logger | null | null | true | false | 11 | 11 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.rate_limit_strategy.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | TokenEstimate | fenic._inference.rate_limit_strategy.TokenEstimate | null | null | true | false | 13 | 29 | null | null | null | null | [] | null | Type: class
Member Name: TokenEstimate
Qualified Name: fenic._inference.rate_limit_strategy.TokenEstimate
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __post_init__ | fenic._inference.rate_limit_strategy.TokenEstimate.__post_init__ | null | null | true | false | 19 | 20 | null | null | null | [
"self"
] | null | TokenEstimate | Type: method
Member Name: __post_init__
Qualified Name: fenic._inference.rate_limit_strategy.TokenEstimate.__post_init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: TokenEstimate |
method | __str__ | fenic._inference.rate_limit_strategy.TokenEstimate.__str__ | null | null | true | false | 22 | 23 | null | null | null | [
"self"
] | null | TokenEstimate | Type: method
Member Name: __str__
Qualified Name: fenic._inference.rate_limit_strategy.TokenEstimate.__str__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: TokenEstimate |
method | __add__ | fenic._inference.rate_limit_strategy.TokenEstimate.__add__ | null | null | true | false | 25 | 29 | null | null | null | [
"self",
"other"
] | null | TokenEstimate | Type: method
Member Name: __add__
Qualified Name: fenic._inference.rate_limit_strategy.TokenEstimate.__add__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "other"]
Returns: none
Parent Class: TokenEstimate |
method | __init__ | fenic._inference.rate_limit_strategy.TokenEstimate.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"input_tokens",
"output_tokens"
] | null | TokenEstimate | Type: method
Member Name: __init__
Qualified Name: fenic._inference.rate_limit_strategy.TokenEstimate.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "input_tokens", "output_tokens"]
Returns: None
Parent Class: TokenEstimate |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.