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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
function | compute_request_fingerprint | fenic._inference.cache.key_builder.compute_request_fingerprint | Build a deterministic SHA-256 key for the given request.
Args:
request: The request object to fingerprint.
model: The model name for the request.
profile_hash: Optional hash of the resolved profile configuration.
base_url: Optional custom base URL for the provider endpoint.
Returns:
A 64-character... | null | true | false | 15 | 62 | null | str | null | [
"request",
"model",
"profile_hash",
"base_url"
] | null | null | Type: function
Member Name: compute_request_fingerprint
Qualified Name: fenic._inference.cache.key_builder.compute_request_fingerprint
Docstring: Build a deterministic SHA-256 key for the given request.
Args:
request: The request object to fingerprint.
model: The model name for the request.
profile_hash: O... |
module | openrouter | fenic._inference.openrouter | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openrouter/__init__.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openrouter
Qualified Name: fenic._inference.openrouter
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
module | openrouter_batch_chat_completions_client | fenic._inference.openrouter.openrouter_batch_chat_completions_client | Client for making batch requests to OpenRouter's chat completions API. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openrouter/openrouter_batch_chat_completions_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openrouter_batch_chat_completions_client
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client
Docstring: Client for making batch requests to OpenRouter's chat completions API.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Re... |
attribute | TOOLS | fenic._inference.openrouter.openrouter_batch_chat_completions_client.TOOLS | null | null | true | false | 46 | 46 | null | null | 'tools' | null | null | null | Type: attribute
Member Name: TOOLS
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.TOOLS
Docstring: none
Value: 'tools'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | STRUCTURED_OUTPUTS | fenic._inference.openrouter.openrouter_batch_chat_completions_client.STRUCTURED_OUTPUTS | null | null | true | false | 48 | 48 | null | null | 'structured_outputs' | null | null | null | Type: attribute
Member Name: STRUCTURED_OUTPUTS
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.STRUCTURED_OUTPUTS
Docstring: none
Value: 'structured_outputs'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | RESPONSE_FORMAT | fenic._inference.openrouter.openrouter_batch_chat_completions_client.RESPONSE_FORMAT | null | null | true | false | 50 | 50 | null | null | 'response_format' | null | null | null | Type: attribute
Member Name: RESPONSE_FORMAT
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.RESPONSE_FORMAT
Docstring: none
Value: 'response_format'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.openrouter.openrouter_batch_chat_completions_client.logger | null | null | true | false | 51 | 51 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenRouterBatchChatCompletionsClient | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient | Client for making batch requests to OpenRouter's chat completions API.
Notes:
- Uses the OpenAI SDK pointed at OpenRouter via base_url.
- Default rate limiting uses AdaptiveBackoffRateLimitStrategy; provider backoffs still apply. | null | true | false | 54 | 336 | null | null | null | null | [
"ProfileHashMixin",
"ModelClient[FenicCompletionsRequest, FenicCompletionsResponse]"
] | null | Type: class
Member Name: OpenRouterBatchChatCompletionsClient
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient
Docstring: Client for making batch requests to OpenRouter's chat completions API.
Notes:
- Uses the OpenAI SDK pointed at OpenRoute... |
method | __init__ | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.__init__ | null | null | true | false | 65 | 110 | null | null | null | [
"self",
"model",
"rate_limit_strategy",
"queue_size",
"max_backoffs",
"profiles",
"default_profile_name",
"cache",
"adaptive_estimation"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "model", "rate_limit_strategy", "queue_size", "max... |
method | make_single_request | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.make_single_request | null | null | true | false | 114 | 262 | null | Union[None, FenicCompletionsResponse, TransientException, FatalException] | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.make_single_request
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "request"]
Returns: Union[No... |
method | estimate_tokens_for_request | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.estimate_tokens_for_request | null | null | true | false | 264 | 270 | null | TokenEstimate | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.estimate_tokens_for_request
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "request"]
R... |
method | reset_metrics | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.reset_metrics | null | null | true | false | 272 | 273 | null | null | null | [
"self"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.reset_metrics
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: OpenRouterBa... |
method | get_metrics | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.get_metrics | null | null | true | false | 275 | 276 | null | LMMetrics | null | [
"self"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient.get_metrics
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: LMMetrics
Parent Class: OpenRouterB... |
method | _estimate_output_tokens | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._estimate_output_tokens | Estimate the number of output tokens for a request. | null | false | true | 278 | 288 | null | int | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: _estimate_output_tokens
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._estimate_output_tokens
Docstring: Estimate the number of output tokens for a request.
Value: none
Annotation: none
is Public? : false
is Private? :... |
method | _get_max_output_token_request_limit | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._get_max_output_token_request_limit | Return the maximum output token limit for a request.
Returns None if max_completion_tokens is not provided (no limit should be set).
If max_completion_tokens is provided, includes the thinking token budget with a safety margin. | null | false | true | 290 | 303 | null | Optional[int] | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: _get_max_output_token_request_limit
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._get_max_output_token_request_limit
Docstring: Return the maximum output token limit for a request.
Returns None if max_completion_toke... |
method | _estimate_input_tokens | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._estimate_input_tokens | Estimate the number of input tokens for a request. | null | false | true | 305 | 310 | null | int | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: _estimate_input_tokens
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._estimate_input_tokens
Docstring: Estimate the number of input tokens for a request.
Value: none
Annotation: none
is Public? : false
is Private? : tr... |
method | _estimate_file_input_tokens | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._estimate_file_input_tokens | Estimate the number of input tokens from a file in a request. | null | false | true | 312 | 319 | null | int | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: _estimate_file_input_tokens
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._estimate_file_input_tokens
Docstring: Estimate the number of input tokens from a file in a request.
Value: none
Annotation: none
is Public? : f... |
method | _get_expected_additional_reasoning_tokens | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._get_expected_additional_reasoning_tokens | null | null | false | true | 323 | 333 | null | int | null | [
"self",
"request"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: _get_expected_additional_reasoning_tokens
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._get_expected_additional_reasoning_tokens
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Param... |
method | _resolve_profile_for_hash | fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._resolve_profile_for_hash | null | null | false | true | 335 | 336 | null | OpenRouterCompletionProfileConfiguration | null | [
"self",
"profile_name"
] | null | OpenRouterBatchChatCompletionsClient | Type: method
Member Name: _resolve_profile_for_hash
Qualified Name: fenic._inference.openrouter.openrouter_batch_chat_completions_client.OpenRouterBatchChatCompletionsClient._resolve_profile_for_hash
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile_name"]
... |
module | openrouter_provider | fenic._inference.openrouter.openrouter_provider | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openrouter/openrouter_provider.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openrouter_provider
Qualified Name: fenic._inference.openrouter.openrouter_provider
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | OPENROUTER_BASE_URL | fenic._inference.openrouter.openrouter_provider.OPENROUTER_BASE_URL | null | null | true | false | 20 | 20 | null | null | 'https://openrouter.ai/api/v1' | null | null | null | Type: attribute
Member Name: OPENROUTER_BASE_URL
Qualified Name: fenic._inference.openrouter.openrouter_provider.OPENROUTER_BASE_URL
Docstring: none
Value: 'https://openrouter.ai/api/v1'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.openrouter.openrouter_provider.logger | null | null | true | false | 22 | 22 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.openrouter.openrouter_provider.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenRouterModelProvider | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider | Lazy singleton provider that caches OpenRouter model parameters.
Fetches models from `https://openrouter.ai/api/v1/models` using `requests`,
translates to `CompletionModelParameters`, and caches on first access. | null | true | false | 25 | 193 | null | null | null | null | [
"ModelProviderClass"
] | null | Type: class
Member Name: OpenRouterModelProvider
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider
Docstring: Lazy singleton provider that caches OpenRouter model parameters.
Fetches models from `https://openrouter.ai/api/v1/models` using `requests`,
translates to `CompletionModel... |
method | __new__ | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.__new__ | null | null | true | false | 35 | 40 | null | null | null | [
"cls",
"args",
"kwargs"
] | null | OpenRouterModelProvider | Type: method
Member Name: __new__
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.__new__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["cls", "args", "kwargs"]
Returns: none
Parent Class: OpenRouterModelProvider |
method | __init__ | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.__init__ | null | null | true | false | 42 | 48 | null | None | null | [
"self"
] | null | OpenRouterModelProvider | Type: method
Member Name: __init__
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: None
Parent Class: OpenRouterModelProvider |
method | create_client | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.create_client | Return an OpenAI SDK client configured for OpenRouter. | null | true | false | 72 | 74 | null | null | null | [
"self"
] | null | OpenRouterModelProvider | Type: method
Member Name: create_client
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.create_client
Docstring: Return an OpenAI SDK client configured for OpenRouter.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Cla... |
method | create_aio_client | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.create_aio_client | Return an Async OpenAI SDK client configured for OpenRouter. | null | true | false | 76 | 78 | null | null | null | [
"self"
] | null | OpenRouterModelProvider | Type: method
Member Name: create_aio_client
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.create_aio_client
Docstring: Return an Async OpenAI SDK client configured for OpenRouter.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: n... |
method | _translate_model | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider._translate_model | null | null | false | true | 80 | 132 | null | Optional[CompletionModelParameters] | null | [
"self",
"model_obj"
] | null | OpenRouterModelProvider | Type: method
Member Name: _translate_model
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider._translate_model
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "model_obj"]
Returns: Optional[CompletionModelParameters]
Parent Cla... |
method | _load_models_once | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider._load_models_once | null | null | false | true | 134 | 169 | null | null | null | [
"self"
] | null | OpenRouterModelProvider | Type: method
Member Name: _load_models_once
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider._load_models_once
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self"]
Returns: none
Parent Class: OpenRouterModelProvider |
method | validate_api_key | fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.validate_api_key | null | null | true | false | 171 | 181 | null | None | null | [
"self"
] | null | OpenRouterModelProvider | Type: method
Member Name: validate_api_key
Qualified Name: fenic._inference.openrouter.openrouter_provider.OpenRouterModelProvider.validate_api_key
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: None
Parent Class: OpenRouterModelProvider |
attribute | openrouter_provider | fenic._inference.openrouter.openrouter_provider.openrouter_provider | null | null | true | false | 196 | 196 | null | null | OpenRouterModelProvider() | null | null | null | Type: attribute
Member Name: openrouter_provider
Qualified Name: fenic._inference.openrouter.openrouter_provider.openrouter_provider
Docstring: none
Value: OpenRouterModelProvider()
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
module | openrouter_profile_manager | fenic._inference.openrouter.openrouter_profile_manager | Profile manager for OpenRouter chat completions extra parameters.
Builds provider-specific extra_body for the OpenAI SDK request against OpenRouter.
References:
- Chat completion params: https://openrouter.ai/docs/api-reference/chat-completion
- API overview (parameters): https://openrouter.ai/docs/api-reference/over... | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openrouter/openrouter_profile_manager.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openrouter_profile_manager
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager
Docstring: Profile manager for OpenRouter chat completions extra parameters.
Builds provider-specific extra_body for the OpenAI SDK request against OpenRouter.
References:
- Chat completion para... |
attribute | logger | fenic._inference.openrouter.openrouter_profile_manager.logger | null | null | true | false | 26 | 26 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenRouterCompletionProfileConfiguration | fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionProfileConfiguration | Completion profile for OpenRouter models. | null | true | false | 29 | 86 | null | null | null | null | [
"BaseProfileConfiguration"
] | null | Type: class
Member Name: OpenRouterCompletionProfileConfiguration
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionProfileConfiguration
Docstring: Completion profile for OpenRouter models.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Retur... |
class | OpenRouterCompletionsProfileManager | fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager | Constructs processed OpenRouter profile configurations per model/profile. | null | true | false | 89 | 168 | null | null | null | null | [
"ProfileManager[ResolvedOpenRouterModelProfile, OpenRouterCompletionProfileConfiguration]"
] | null | Type: class
Member Name: OpenRouterCompletionsProfileManager
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager
Docstring: Constructs processed OpenRouter profile configurations per model/profile.
Value: none
Annotation: none
is Public? : true
is Private? : false
... |
method | __init__ | fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager.__init__ | null | null | true | false | 96 | 108 | null | null | null | [
"self",
"model_parameters",
"profile_configurations",
"default_profile_name"
] | null | OpenRouterCompletionsProfileManager | Type: method
Member Name: __init__
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "model_parameters", "profile_configurations", "default_profile_na... |
method | _process_profile | fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager._process_profile | null | null | false | true | 110 | 160 | null | OpenRouterCompletionProfileConfiguration | null | [
"self",
"profile"
] | null | OpenRouterCompletionsProfileManager | Type: method
Member Name: _process_profile
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager._process_profile
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile"]
Returns: OpenRouterCompletionProfileCo... |
method | get_default_profile | fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager.get_default_profile | null | null | true | false | 162 | 168 | null | OpenRouterCompletionProfileConfiguration | null | [
"self"
] | null | OpenRouterCompletionsProfileManager | Type: method
Member Name: get_default_profile
Qualified Name: fenic._inference.openrouter.openrouter_profile_manager.OpenRouterCompletionsProfileManager.get_default_profile
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: OpenRouterCompletionProfileConfigu... |
module | google | fenic._inference.google | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/__init__.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: google
Qualified Name: fenic._inference.google
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
module | google_profile_manager | fenic._inference.google.google_profile_manager | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/google_profile_manager.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: google_profile_manager
Qualified Name: fenic._inference.google.google_profile_manager
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | GoogleCompletionsProfileConfig | fenic._inference.google.google_profile_manager.GoogleCompletionsProfileConfig | Configuration for Google Gemini model profiles.
Attributes:
thinking_enabled: Whether thinking/reasoning is enabled for this profile
thinking_token_budget: Token budget allocated for thinking/reasoning
thinking_config: Google thinking configuration
media_resolution: Media resolution for PDF processing ... | null | true | false | 22 | 35 | null | null | null | null | [
"BaseProfileConfiguration"
] | null | Type: class
Member Name: GoogleCompletionsProfileConfig
Qualified Name: fenic._inference.google.google_profile_manager.GoogleCompletionsProfileConfig
Docstring: Configuration for Google Gemini model profiles.
Attributes:
thinking_enabled: Whether thinking/reasoning is enabled for this profile
thinking_token_bu... |
method | __init__ | fenic._inference.google.google_profile_manager.GoogleCompletionsProfileConfig.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"thinking_enabled",
"thinking_token_budget",
"thinking_config",
"media_resolution"
] | null | GoogleCompletionsProfileConfig | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.google_profile_manager.GoogleCompletionsProfileConfig.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "thinking_enabled", "thinking_token_budget", "thinking_config", "media_resolut... |
class | GoogleEmbeddingsProfileConfig | fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileConfig | Configuration for Google Gemini embeddings model profiles. | null | true | false | 37 | 40 | null | null | null | null | [
"BaseProfileConfiguration"
] | null | Type: class
Member Name: GoogleEmbeddingsProfileConfig
Qualified Name: fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileConfig
Docstring: Configuration for Google Gemini embeddings model profiles.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Pare... |
method | __init__ | fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileConfig.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"embedding_config"
] | null | GoogleEmbeddingsProfileConfig | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileConfig.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "embedding_config"]
Returns: None
Parent Class: GoogleEmbeddingsProfileConfig |
class | GoogleEmbeddingsProfileManager | fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager | null | null | true | false | 42 | 63 | null | null | null | null | [
"ProfileManager[ResolvedGoogleModelProfile, GoogleEmbeddingsProfileConfig]"
] | null | Type: class
Member Name: GoogleEmbeddingsProfileManager
Qualified Name: fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager.__init__ | null | null | true | false | 44 | 51 | null | null | null | [
"self",
"model_parameters",
"profiles",
"default_profile_name"
] | null | GoogleEmbeddingsProfileManager | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "model_parameters", "profiles", "default_profile_name"]
Returns: none
Parent C... |
method | _process_profile | fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager._process_profile | null | null | false | true | 54 | 60 | null | GoogleEmbeddingsProfileConfig | null | [
"self",
"profile"
] | null | GoogleEmbeddingsProfileManager | Type: method
Member Name: _process_profile
Qualified Name: fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager._process_profile
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile"]
Returns: GoogleEmbeddingsProfileConfig
Parent Class... |
method | get_default_profile | fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager.get_default_profile | null | null | true | false | 62 | 63 | null | GoogleEmbeddingsProfileConfig | null | [
"self"
] | null | GoogleEmbeddingsProfileManager | Type: method
Member Name: get_default_profile
Qualified Name: fenic._inference.google.google_profile_manager.GoogleEmbeddingsProfileManager.get_default_profile
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: GoogleEmbeddingsProfileConfig
Parent Class: Goo... |
class | GoogleCompletionsProfileManager | fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager | Manages Google-specific profile configurations.
This class handles the conversion of Fenic profile configurations to
Google Gemini-specific configurations, including thinking/reasoning settings. | null | true | false | 67 | 202 | null | null | null | null | [
"ProfileManager[ResolvedGoogleModelProfile, GoogleCompletionsProfileConfig]"
] | null | Type: class
Member Name: GoogleCompletionsProfileManager
Qualified Name: fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager
Docstring: Manages Google-specific profile configurations.
This class handles the conversion of Fenic profile configurations to
Google Gemini-specific configurations, ... |
method | __init__ | fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager.__init__ | Initialize the Google profile configuration manager.
Args:
model_parameters: Parameters for the completion model
profile_configurations: Dictionary of profile configurations
default_profile_name: Name of the default profile to use | null | true | false | 74 | 88 | null | null | null | [
"self",
"model_parameters",
"profile_configurations",
"default_profile_name"
] | null | GoogleCompletionsProfileManager | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager.__init__
Docstring: Initialize the Google profile configuration manager.
Args:
model_parameters: Parameters for the completion model
profile_configurations: Dictionary of profile co... |
method | _process_profile | fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager._process_profile | Process Google profile configuration.
Converts a Fenic profile configuration to a Google-specific configuration,
handling thinking/reasoning settings based on model capabilities.
Args:
profile: The Fenic profile configuration to process
Returns:
Google-specific profile configuration | null | false | true | 90 | 159 | null | GoogleCompletionsProfileConfig | null | [
"self",
"profile"
] | null | GoogleCompletionsProfileManager | Type: method
Member Name: _process_profile
Qualified Name: fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager._process_profile
Docstring: Process Google profile configuration.
Converts a Fenic profile configuration to a Google-specific configuration,
handling thinking/reasoning settings bas... |
method | get_default_profile | fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager.get_default_profile | Get default Google configuration.
Returns:
Default configuration with thinking disabled if supported, otherwise default to low reasoning | null | true | false | 161 | 202 | null | GoogleCompletionsProfileConfig | null | [
"self"
] | null | GoogleCompletionsProfileManager | Type: method
Member Name: get_default_profile
Qualified Name: fenic._inference.google.google_profile_manager.GoogleCompletionsProfileManager.get_default_profile
Docstring: Get default Google configuration.
Returns:
Default configuration with thinking disabled if supported, otherwise default to low reasoning
Value:... |
module | gemini_native_chat_completions_client | fenic._inference.google.gemini_native_chat_completions_client | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/gemini_native_chat_completions_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: gemini_native_chat_completions_client
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.google.gemini_native_chat_completions_client.logger | null | null | true | false | 61 | 61 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | GeminiNativeChatCompletionsClient | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient | Native (google-genai) Google Gemini chat-completions client.
This client handles communication with Google's Gemini models using the native
google-genai library. It supports both standard and Vertex AI environments,
thinking/reasoning capabilities, structured output, and comprehensive token
tracking. | null | true | false | 64 | 415 | null | null | null | null | [
"ProfileHashMixin",
"ModelClient[FenicCompletionsRequest, FenicCompletionsResponse]"
] | null | Type: class
Member Name: GeminiNativeChatCompletionsClient
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient
Docstring: Native (google-genai) Google Gemini chat-completions client.
This client handles communication with Google's Gemini models using the nati... |
method | __init__ | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.__init__ | Initialize the Gemini native chat completions client.
Args:
rate_limit_strategy: Strategy for rate limiting requests
model_provider: Google model provider (Developer or Vertex AI)
model: Gemini model name to use
queue_size: Maximum size of the request queue
max_backoffs: Maximum number of retry bac... | null | true | false | 76 | 127 | null | null | null | [
"self",
"rate_limit_strategy",
"model_provider",
"model",
"queue_size",
"max_backoffs",
"profiles",
"default_profile_name",
"cache",
"adaptive_estimation"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.__init__
Docstring: Initialize the Gemini native chat completions client.
Args:
rate_limit_strategy: Strategy for rate limiting requests
model_provider: Google mode... |
method | reset_metrics | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.reset_metrics | Reset metrics to initial state. | null | true | false | 130 | 132 | null | null | null | [
"self"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.reset_metrics
Docstring: Reset metrics to initial state.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Cl... |
method | get_metrics | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.get_metrics | Get current metrics.
Returns:
Current language model metrics | null | true | false | 134 | 140 | null | LMMetrics | null | [
"self"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.get_metrics
Docstring: Get current metrics.
Returns:
Current language model metrics
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["... |
method | count_tokens | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.count_tokens | Count tokens in messages.
Re-exposes the parent implementation for type checking.
Args:
messages: Messages to count tokens for
Returns:
Token count | null | true | false | 142 | 154 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: count_tokens
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.count_tokens
Docstring: Count tokens in messages.
Re-exposes the parent implementation for type checking.
Args:
messages: Messages to count tokens for
Returns:
... |
method | estimate_tokens_for_request | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.estimate_tokens_for_request | Estimate the number of tokens for a request.
If the request provides a max_completion_tokens value, use that. Otherwise, estimate the output tokens based on the file size.
Args:
request: The request to estimate tokens for
Returns:
TokenEstimate: The estimated token usage | null | true | false | 156 | 179 | null | null | null | [
"self",
"request"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.estimate_tokens_for_request
Docstring: Estimate the number of tokens for a request.
If the request provides a max_completion_tokens value, use that. Oth... |
method | make_single_request | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.make_single_request | Make a single completion request to Google Gemini.
Handles both text and structured output requests, with support for
thinking/reasoning when enabled. Processes responses and extracts
comprehensive usage metrics including thinking tokens.
Args:
request: The completion request to process
Returns:
Completion r... | null | true | false | 181 | 341 | null | Union[None, FenicCompletionsResponse, TransientException, FatalException] | null | [
"self",
"request"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient.make_single_request
Docstring: Make a single completion request to Google Gemini.
Handles both text and structured output requests, with support for
thinking/rea... |
method | _estimate_response_schema_tokens | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._estimate_response_schema_tokens | Estimate token count for a response format schema.
Uses Google's tokenizer to count tokens in a JSON schema representation
of the response format. Results are cached for performance.
Args:
response_format: Pydantic model class defining the response format
Returns:
Estimated token count for the response forma... | null | false | true | 343 | 359 | null | int | null | [
"self",
"response_format"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: _estimate_response_schema_tokens
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._estimate_response_schema_tokens
Docstring: Estimate token count for a response format schema.
Uses Google's tokenizer to count tokens in a JSON sch... |
method | _estimate_structured_output_overhead | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._estimate_structured_output_overhead | Use Google-specific response schema token estimation.
Args:
response_format: Pydantic model class defining the response format
Returns:
Estimated token overhead for structured output | null | false | true | 361 | 372 | null | int | null | [
"self",
"response_format"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: _estimate_structured_output_overhead
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._estimate_structured_output_overhead
Docstring: Use Google-specific response schema token estimation.
Args:
response_format: Pydantic model ... |
method | _estimate_output_tokens | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._estimate_output_tokens | Estimate the number of output tokens for a request. | null | false | true | 374 | 386 | null | int | null | [
"self",
"request"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: _estimate_output_tokens
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._estimate_output_tokens
Docstring: Estimate the number of output tokens for a request.
Value: none
Annotation: none
is Public? : false
is Private? : true
Para... |
method | _get_max_output_token_request_limit | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._get_max_output_token_request_limit | Get the upper limit of output tokens for a request.
Returns None if max_completion_tokens is not provided (no limit should be set).
If max_completion_tokens is provided, includes the thinking token budget with a safety margin. | null | false | true | 388 | 403 | null | Optional[int] | null | [
"self",
"request"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: _get_max_output_token_request_limit
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._get_max_output_token_request_limit
Docstring: Get the upper limit of output tokens for a request.
Returns None if max_completion_tokens is not p... |
method | _get_expected_additional_reasoning_tokens | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._get_expected_additional_reasoning_tokens | Get the expected additional reasoning tokens for a request. Include a safety margin. | null | false | true | 405 | 412 | null | int | null | [
"self",
"request"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: _get_expected_additional_reasoning_tokens
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._get_expected_additional_reasoning_tokens
Docstring: Get the expected additional reasoning tokens for a request. Include a safety margin.
V... |
method | _resolve_profile_for_hash | fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._resolve_profile_for_hash | null | null | false | true | 414 | 415 | null | GoogleCompletionsProfileConfig | null | [
"self",
"profile_name"
] | null | GeminiNativeChatCompletionsClient | Type: method
Member Name: _resolve_profile_for_hash
Qualified Name: fenic._inference.google.gemini_native_chat_completions_client.GeminiNativeChatCompletionsClient._resolve_profile_for_hash
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile_name"]
Returns: G... |
module | gemini_batch_embeddings_client | fenic._inference.google.gemini_batch_embeddings_client | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/gemini_batch_embeddings_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: gemini_batch_embeddings_client
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | GoogleBatchEmbeddingsClient | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient | null | null | true | false | 31 | 120 | null | null | null | null | [
"ProfileHashMixin",
"ModelClient[FenicEmbeddingsRequest, List[float]]"
] | null | Type: class
Member Name: GoogleBatchEmbeddingsClient
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.__init__ | null | null | true | false | 34 | 63 | null | null | null | [
"self",
"rate_limit_strategy",
"model_provider",
"model",
"queue_size",
"max_backoffs",
"profiles",
"default_profile_name"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "rate_limit_strategy", "model_provider", "model", "queue_size", "max_back... |
method | make_single_request | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.make_single_request | null | null | true | false | 67 | 103 | null | Union[None, List[float], TransientException, FatalException] | null | [
"self",
"request"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.make_single_request
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "request"]
Returns: Union[None, List[float], Transi... |
method | estimate_tokens_for_request | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.estimate_tokens_for_request | null | null | true | false | 105 | 108 | null | TokenEstimate | null | [
"self",
"request"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.estimate_tokens_for_request
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "request"]
Returns: TokenEstimate
P... |
method | _get_max_output_token_request_limit | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient._get_max_output_token_request_limit | null | null | false | true | 110 | 111 | null | int | null | [
"self",
"request"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: _get_max_output_token_request_limit
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient._get_max_output_token_request_limit
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "request"]
Returns:... |
method | reset_metrics | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.reset_metrics | null | null | true | false | 113 | 114 | null | null | null | [
"self"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.reset_metrics
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: GoogleBatchEmbeddingsClient |
method | get_metrics | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.get_metrics | null | null | true | false | 116 | 117 | null | RMMetrics | null | [
"self"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient.get_metrics
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: RMMetrics
Parent Class: GoogleBatchEmbeddingsClient |
method | _resolve_profile_for_hash | fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient._resolve_profile_for_hash | null | null | false | true | 119 | 120 | null | GoogleEmbeddingsProfileConfig | null | [
"self",
"profile_name"
] | null | GoogleBatchEmbeddingsClient | Type: method
Member Name: _resolve_profile_for_hash
Qualified Name: fenic._inference.google.gemini_batch_embeddings_client.GoogleBatchEmbeddingsClient._resolve_profile_for_hash
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile_name"]
Returns: GoogleEmbeddin... |
module | gemini_token_counter | fenic._inference.google.gemini_token_counter | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/gemini_token_counter.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: gemini_token_counter
Qualified Name: fenic._inference.google.gemini_token_counter
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.google.gemini_token_counter.logger | null | null | true | false | 16 | 16 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.google.gemini_token_counter.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | GeminiLocalTokenCounter | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter | Token counter for Google Gemini models using native local tokenization.
This counter prefers the Google `LocalTokenizer` for accurate counts that
match the Gemini backend. If the Google tokenizer cannot be constructed for
the given model (e.g., unsupported model name), it falls back to the encoding mapped
for the fall... | null | true | false | 19 | 119 | null | null | null | null | [
"TokenCounter"
] | null | Type: class
Member Name: GeminiLocalTokenCounter
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter
Docstring: Token counter for Google Gemini models using native local tokenization.
This counter prefers the Google `LocalTokenizer` for accurate counts that
match the Gemini backend. If... |
method | __init__ | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.__init__ | null | null | true | false | 47 | 52 | null | None | null | [
"self",
"model_name",
"fallback_encoding"
] | null | GeminiLocalTokenCounter | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "model_name", "fallback_encoding"]
Returns: None
Parent Class: GeminiLocalTokenCounter |
method | count_tokens | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.count_tokens | Count tokens for a string, message list, or `LMRequestMessages`.
Args:
messages: Either a raw string, a list of role/content dicts, or an
`LMRequestMessages` instance.
Returns:
Total token count as an integer. | null | true | false | 54 | 67 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | GeminiLocalTokenCounter | Type: method
Member Name: count_tokens
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.count_tokens
Docstring: Count tokens for a string, message list, or `LMRequestMessages`.
Args:
messages: Either a raw string, a list of role/content dicts, or an
`LMRequestMessages` i... |
method | count_file_input_tokens | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.count_file_input_tokens | Count tokens for file input (PDF).
Args:
messages: The request messages containing the file.
media_resolution: Optional media resolution ("low", "medium", "high").
Only used for gemini-3+ models.
Returns:
Estimated token count for the file input. | null | true | false | 69 | 92 | null | int | null | [
"self",
"messages",
"media_resolution"
] | null | GeminiLocalTokenCounter | Type: method
Member Name: count_file_input_tokens
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.count_file_input_tokens
Docstring: Count tokens for file input (PDF).
Args:
messages: The request messages containing the file.
media_resolution: Optional media resolution ("lo... |
method | count_file_output_tokens | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.count_file_output_tokens | null | null | true | false | 94 | 99 | null | int | null | [
"self",
"messages"
] | null | GeminiLocalTokenCounter | Type: method
Member Name: count_file_output_tokens
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter.count_file_output_tokens
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "messages"]
Returns: int
Parent Class: GeminiLocalToken... |
method | _count_request_tokens | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter._count_request_tokens | Count tokens for an `LMRequestMessages` object. | null | false | true | 101 | 114 | null | int | null | [
"self",
"messages",
"ignore_file"
] | null | GeminiLocalTokenCounter | Type: method
Member Name: _count_request_tokens
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter._count_request_tokens
Docstring: Count tokens for an `LMRequestMessages` object.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "messages", "ignor... |
method | _count_text_tokens | fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter._count_text_tokens | Count tokens for a raw text string | null | false | true | 117 | 119 | null | int | null | [
"self",
"text"
] | null | GeminiLocalTokenCounter | Type: method
Member Name: _count_text_tokens
Qualified Name: fenic._inference.google.gemini_token_counter.GeminiLocalTokenCounter._count_text_tokens
Docstring: Count tokens for a raw text string
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "text"]
Returns: int
Parent Class: Ge... |
module | google_utils | fenic._inference.google.google_utils | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/google_utils.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: google_utils
Qualified Name: fenic._inference.google.google_utils
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.google.google_utils.logger | null | null | true | false | 10 | 10 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.google.google_utils.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
function | _upload_file | fenic._inference.google.google_utils._upload_file | Upload a file to Google's file store.
Args:
client: Google genai client
file_path: Path to the file to upload
page_range: Optional page range for PDF files (start, end) inclusive, 0-indexed
Returns:
Uploaded file object | null | false | true | 12 | 33 | null | File | null | [
"client",
"file"
] | null | null | Type: function
Member Name: _upload_file
Qualified Name: fenic._inference.google.google_utils._upload_file
Docstring: Upload a file to Google's file store.
Args:
client: Google genai client
file_path: Path to the file to upload
page_range: Optional page range for PDF files (start, end) inclusive, 0-indexed... |
function | delete_file | fenic._inference.google.google_utils.delete_file | Delete a file from Googl e's file store. | null | true | false | 35 | 38 | null | None | null | [
"client",
"file_name"
] | null | null | Type: function
Member Name: delete_file
Qualified Name: fenic._inference.google.google_utils.delete_file
Docstring: Delete a file from Googl e's file store.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["client", "file_name"]
Returns: None
Parent Class: none |
function | convert_messages_and_upload_files | fenic._inference.google.google_utils.convert_messages_and_upload_files | Convert Fenic LMRequestMessages → list of google-genai `Content` objects.
Converts Fenic message format to Google's Content format, including
few-shot examples and the final user prompt.
If a file is included in the messages, upload it to Google's file store and add the file object to the end of the contents list.
A... | null | true | false | 40 | 59 | null | Tuple[List[ContentUnion], File] | null | [
"client",
"messages"
] | null | null | Type: function
Member Name: convert_messages_and_upload_files
Qualified Name: fenic._inference.google.google_utils.convert_messages_and_upload_files
Docstring: Convert Fenic LMRequestMessages → list of google-genai `Content` objects.
Converts Fenic message format to Google's Content format, including
few-shot examples... |
function | convert_text_messages | fenic._inference.google.google_utils.convert_text_messages | Convert Fenic LMRequestMessages → list of google-genai `Content` objects.
Converts Fenic message format to Google's Content format, including
few-shot examples and the final user prompt.
Only returns the messages with text content. Ignores any files in the messages.
Args:
messages: Fenic message format
Returns... | null | true | false | 62 | 97 | null | Tuple[List[ContentUnion], Optional[File]] | null | [
"messages"
] | null | null | Type: function
Member Name: convert_text_messages
Qualified Name: fenic._inference.google.google_utils.convert_text_messages
Docstring: Convert Fenic LMRequestMessages → list of google-genai `Content` objects.
Converts Fenic message format to Google's Content format, including
few-shot examples and the final user prom... |
module | google_provider | fenic._inference.google.google_provider | Google model provider implementation. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/google/google_provider.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: google_provider
Qualified Name: fenic._inference.google.google_provider
Docstring: Google model provider implementation.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | MAX_CLIENT_TIMEOUT_MS | fenic._inference.google.google_provider.MAX_CLIENT_TIMEOUT_MS | null | null | true | false | 15 | 15 | null | null | MAX_MODEL_CLIENT_TIMEOUT * 1000 | null | null | null | Type: attribute
Member Name: MAX_CLIENT_TIMEOUT_MS
Qualified Name: fenic._inference.google.google_provider.MAX_CLIENT_TIMEOUT_MS
Docstring: none
Value: MAX_MODEL_CLIENT_TIMEOUT * 1000
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.google.google_provider.logger | null | null | true | false | 17 | 17 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.google.google_provider.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | GoogleModelProvider | fenic._inference.google.google_provider.GoogleModelProvider | Google implementation of ModelProvider. | null | true | false | 20 | 39 | null | null | null | null | [
"ModelProviderClass"
] | null | Type: class
Member Name: GoogleModelProvider
Qualified Name: fenic._inference.google.google_provider.GoogleModelProvider
Docstring: Google implementation of ModelProvider.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.google.google_provider.GoogleModelProvider.__init__ | null | null | true | false | 23 | 24 | null | null | null | [
"self"
] | null | GoogleModelProvider | Type: method
Member Name: __init__
Qualified Name: fenic._inference.google.google_provider.GoogleModelProvider.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: GoogleModelProvider |
method | create_client | fenic._inference.google.google_provider.GoogleModelProvider.create_client | null | null | true | false | 26 | 28 | null | null | null | [
"self"
] | null | GoogleModelProvider | Type: method
Member Name: create_client
Qualified Name: fenic._inference.google.google_provider.GoogleModelProvider.create_client
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: GoogleModelProvider |
method | validate_api_key | fenic._inference.google.google_provider.GoogleModelProvider.validate_api_key | Validate Google API key by listing models. | null | true | false | 30 | 35 | null | None | null | [
"self"
] | null | GoogleModelProvider | Type: method
Member Name: validate_api_key
Qualified Name: fenic._inference.google.google_provider.GoogleModelProvider.validate_api_key
Docstring: Validate Google API key by listing models.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: None
Parent Class: GoogleModelPro... |
method | create_aio_client | fenic._inference.google.google_provider.GoogleModelProvider.create_aio_client | Create a Google async client instance. | null | true | false | 37 | 39 | null | null | null | [
"self"
] | null | GoogleModelProvider | Type: method
Member Name: create_aio_client
Qualified Name: fenic._inference.google.google_provider.GoogleModelProvider.create_aio_client
Docstring: Create a Google async client instance.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: GoogleModelProvi... |
class | GoogleDeveloperModelProvider | fenic._inference.google.google_provider.GoogleDeveloperModelProvider | Google Developer implementation of ModelProvider. | null | true | false | 42 | 54 | null | null | null | null | [
"GoogleModelProvider"
] | null | Type: class
Member Name: GoogleDeveloperModelProvider
Qualified Name: fenic._inference.google.google_provider.GoogleDeveloperModelProvider
Docstring: Google Developer implementation of ModelProvider.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.