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 | create_client | fenic._inference.google.google_provider.GoogleDeveloperModelProvider.create_client | Create a Google Developer client instance. | null | true | false | 49 | 54 | null | null | null | [
"self"
] | null | GoogleDeveloperModelProvider | Type: method
Member Name: create_client
Qualified Name: fenic._inference.google.google_provider.GoogleDeveloperModelProvider.create_client
Docstring: Create a Google Developer client instance.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: GoogleDevel... |
class | GoogleVertexModelProvider | fenic._inference.google.google_provider.GoogleVertexModelProvider | Google Vertex implementation of ModelProvider. | null | true | false | 57 | 69 | null | null | null | null | [
"GoogleModelProvider"
] | null | Type: class
Member Name: GoogleVertexModelProvider
Qualified Name: fenic._inference.google.google_provider.GoogleVertexModelProvider
Docstring: Google Vertex implementation of ModelProvider.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | create_client | fenic._inference.google.google_provider.GoogleVertexModelProvider.create_client | Create a Google Vertex client instance.
Passing `vertexai=True` automatically routes traffic through Vertex-AI if the environment is configured for it. | null | true | false | 64 | 69 | null | null | null | [
"self"
] | null | GoogleVertexModelProvider | Type: method
Member Name: create_client
Qualified Name: fenic._inference.google.google_provider.GoogleVertexModelProvider.create_client
Docstring: Create a Google Vertex client instance.
Passing `vertexai=True` automatically routes traffic through Vertex-AI if the environment is configured for it.
Value: none
Annotati... |
function | _suppress_google_experimental_warnings | fenic._inference.google.google_provider._suppress_google_experimental_warnings | Silence ExperimentalWarning from google-genai local tokenizer. | null | false | true | 72 | 74 | null | None | null | [] | null | null | Type: function
Member Name: _suppress_google_experimental_warnings
Qualified Name: fenic._inference.google.google_provider._suppress_google_experimental_warnings
Docstring: Silence ExperimentalWarning from google-genai local tokenizer.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: []
Re... |
module | common_openai | fenic._inference.common_openai | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/common_openai/__init__.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: common_openai
Qualified Name: fenic._inference.common_openai
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
module | openai_chat_completions_core | fenic._inference.common_openai.openai_chat_completions_core | Core functionality for OpenAI chat completions clients. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/common_openai/openai_chat_completions_core.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_chat_completions_core
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core
Docstring: Core functionality for OpenAI chat completions clients.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.common_openai.openai_chat_completions_core.logger | null | null | true | false | 45 | 45 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenAIChatCompletionsCore | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore | Core functionality for OpenAI chat completions clients. | null | true | false | 48 | 274 | null | null | null | null | [] | null | Type: class
Member Name: OpenAIChatCompletionsCore
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore
Docstring: Core functionality for OpenAI chat completions clients.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Pa... |
method | __init__ | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.__init__ | Initialize the OpenAI chat completions client core.
Args:
model: The model to use
model_provider: The provider of the model
token_counter: Counter for estimating token usage
client: The OpenAI client
additional_params: Additional parameters to pass to the API, e.g. {"reasoning_effort": "none"} for ... | null | true | false | 51 | 73 | null | null | null | [
"self",
"model",
"model_provider",
"token_counter",
"client"
] | null | OpenAIChatCompletionsCore | Type: method
Member Name: __init__
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.__init__
Docstring: Initialize the OpenAI chat completions client core.
Args:
model: The model to use
model_provider: The provider of the model
token_counter: Counter for... |
method | reset_metrics | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.reset_metrics | Reset the metrics. | null | true | false | 75 | 77 | null | None | null | [
"self"
] | null | OpenAIChatCompletionsCore | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.reset_metrics
Docstring: Reset the metrics.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: None
Parent Class: OpenAIChatCompleti... |
method | get_metrics | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.get_metrics | Get the metrics. | null | true | false | 79 | 81 | null | LMMetrics | null | [
"self"
] | null | OpenAIChatCompletionsCore | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.get_metrics
Docstring: Get the metrics.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: LMMetrics
Parent Class: OpenAIChatCompletio... |
method | make_single_request | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.make_single_request | Make a single request to the OpenAI API.
Args:
request: The messages to send
profile_configuration: The optional profile configuration for the request (for passing reasoning_effort and verbosity)
Returns:
The response text or an exception | null | true | false | 83 | 239 | null | Union[None, FenicCompletionsResponse, TransientException, FatalException] | null | [
"self",
"request",
"profile_configuration"
] | null | OpenAIChatCompletionsCore | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.make_single_request
Docstring: Make a single request to the OpenAI API.
Args:
request: The messages to send
profile_configuration: The optional profile configurati... |
method | get_request_key | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.get_request_key | Generate a unique key for request deduplication.
Args:
request: The request to generate a key for
Returns:
A unique key for the request | null | true | false | 241 | 250 | null | str | null | [
"self",
"request"
] | null | OpenAIChatCompletionsCore | Type: method
Member Name: get_request_key
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.get_request_key
Docstring: Generate a unique key for request deduplication.
Args:
request: The request to generate a key for
Returns:
A unique key for the request
Val... |
method | get_max_output_token_request_limit | fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.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 | true | false | 252 | 274 | null | Optional[int] | null | [
"self",
"request",
"profile_config"
] | null | OpenAIChatCompletionsCore | Type: method
Member Name: get_max_output_token_request_limit
Qualified Name: fenic._inference.common_openai.openai_chat_completions_core.OpenAIChatCompletionsCore.get_max_output_token_request_limit
Docstring: Return the maximum output token limit for a request.
Returns None if max_completion_tokens is not provided (no... |
module | openai_embeddings_core | fenic._inference.common_openai.openai_embeddings_core | Core functionality for OpenAI embeddings clients. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/common_openai/openai_embeddings_core.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_embeddings_core
Qualified Name: fenic._inference.common_openai.openai_embeddings_core
Docstring: Core functionality for OpenAI embeddings clients.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.common_openai.openai_embeddings_core.logger | null | null | true | false | 30 | 30 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenAIEmbeddingsCore | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore | Core functionality for OpenAI embeddings clients. | null | true | false | 32 | 153 | null | null | null | null | [] | null | Type: class
Member Name: OpenAIEmbeddingsCore
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore
Docstring: Core functionality for OpenAI embeddings clients.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.__init__ | Initialize the OpenAI embeddings client core.
Args:
model: The model to use
model_provider: The provider of the model
token_counter: Counter for estimating token usage
client: The OpenAI client | null | true | false | 35 | 56 | null | null | null | [
"self",
"model",
"model_provider",
"token_counter",
"client"
] | null | OpenAIEmbeddingsCore | Type: method
Member Name: __init__
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.__init__
Docstring: Initialize the OpenAI embeddings client core.
Args:
model: The model to use
model_provider: The provider of the model
token_counter: Counter for estimating token... |
method | reset_metrics | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.reset_metrics | Reset the metrics. | null | true | false | 58 | 60 | null | None | null | [
"self"
] | null | OpenAIEmbeddingsCore | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.reset_metrics
Docstring: Reset the metrics.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: None
Parent Class: OpenAIEmbeddingsCore |
method | get_metrics | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.get_metrics | Get the metrics. | null | true | false | 62 | 64 | null | RMMetrics | null | [
"self"
] | null | OpenAIEmbeddingsCore | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.get_metrics
Docstring: Get the metrics.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: RMMetrics
Parent Class: OpenAIEmbeddingsCore |
method | make_single_request | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.make_single_request | Make a single request to the OpenAI API.
Args:
request: The text to embed
Returns:
The embedding vector or an exception | null | true | false | 66 | 131 | null | Union[None, List[float], TransientException, FatalException] | null | [
"self",
"request"
] | null | OpenAIEmbeddingsCore | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.make_single_request
Docstring: Make a single request to the OpenAI API.
Args:
request: The text to embed
Returns:
The embedding vector or an exception
Value: none
Annotation... |
method | get_request_key | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.get_request_key | Generate a unique key for request deduplication.
Args:
request: The request to generate a key for
Returns:
A unique key for the request | null | true | false | 133 | 142 | null | str | null | [
"self",
"request"
] | null | OpenAIEmbeddingsCore | Type: method
Member Name: get_request_key
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.get_request_key
Docstring: Generate a unique key for request deduplication.
Args:
request: The request to generate a key for
Returns:
A unique key for the request
Value: none
An... |
method | estimate_tokens_for_request | fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.estimate_tokens_for_request | Estimate the number of tokens for a request.
Args:
request: The request to estimate tokens for
Returns:
TokenEstimate with input token count | null | true | false | 144 | 153 | null | TokenEstimate | null | [
"self",
"request"
] | null | OpenAIEmbeddingsCore | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.common_openai.openai_embeddings_core.OpenAIEmbeddingsCore.estimate_tokens_for_request
Docstring: Estimate the number of tokens for a request.
Args:
request: The request to estimate tokens for
Returns:
TokenEstimate with inp... |
module | openai_utils | fenic._inference.common_openai.openai_utils | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/common_openai/openai_utils.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_utils
Qualified Name: fenic._inference.common_openai.openai_utils
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
function | convert_messages | fenic._inference.common_openai.openai_utils.convert_messages | null | null | true | false | 8 | 31 | null | List[Dict[str, str]] | null | [
"lm_request_messages"
] | null | null | Type: function
Member Name: convert_messages
Qualified Name: fenic._inference.common_openai.openai_utils.convert_messages
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["lm_request_messages"]
Returns: List[Dict[str, str]]
Parent Class: none |
module | openai_profile_manager | fenic._inference.common_openai.openai_profile_manager | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/common_openai/openai_profile_manager.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_profile_manager
Qualified Name: fenic._inference.common_openai.openai_profile_manager
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenAICompletionProfileConfiguration | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionProfileConfiguration | null | null | true | false | 17 | 21 | null | null | null | null | [
"BaseProfileConfiguration"
] | null | Type: class
Member Name: OpenAICompletionProfileConfiguration
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionProfileConfiguration
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionProfileConfiguration.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"reasoning_effort",
"verbosity",
"expected_additional_reasoning_tokens"
] | null | OpenAICompletionProfileConfiguration | Type: method
Member Name: __init__
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionProfileConfiguration.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "reasoning_effort", "verbosity", "expected_additional_reasoning_t... |
class | OpenAICompletionsProfileManager | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager | Manages OpenAI-specific profile configurations. | null | true | false | 24 | 71 | null | null | null | null | [
"ProfileManager[ResolvedOpenAIModelProfile, OpenAICompletionProfileConfiguration]"
] | null | Type: class
Member Name: OpenAICompletionsProfileManager
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager
Docstring: Manages OpenAI-specific profile configurations.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Pare... |
method | __init__ | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager.__init__ | null | null | true | false | 28 | 35 | null | null | null | [
"self",
"model_parameters",
"profile_configurations",
"default_profile_name"
] | null | OpenAICompletionsProfileManager | Type: method
Member Name: __init__
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "model_parameters", "profile_configurations", "default_profile_name"]
... |
method | _process_profile | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager._process_profile | Process OpenAI profile configuration. | null | false | true | 37 | 51 | null | OpenAICompletionProfileConfiguration | null | [
"self",
"profile"
] | null | OpenAICompletionsProfileManager | Type: method
Member Name: _process_profile
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager._process_profile
Docstring: Process OpenAI profile configuration.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile"]
Returns: O... |
method | _resolve_verbosity | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager._resolve_verbosity | null | null | false | true | 53 | 56 | null | Optional[Verbosity] | null | [
"self",
"profile"
] | null | OpenAICompletionsProfileManager | Type: method
Member Name: _resolve_verbosity
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager._resolve_verbosity
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile"]
Returns: Optional[Verbosity]
Parent Cla... |
method | _get_reasoning_tokens | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager._get_reasoning_tokens | Get the expected additional reasoning tokens for a given reasoning effort level. | null | false | true | 58 | 60 | null | int | null | [
"self",
"reasoning_effort"
] | null | OpenAICompletionsProfileManager | Type: method
Member Name: _get_reasoning_tokens
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager._get_reasoning_tokens
Docstring: Get the expected additional reasoning tokens for a given reasoning effort level.
Value: none
Annotation: none
is Public? : false
is Priva... |
method | get_default_profile | fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager.get_default_profile | Get default OpenAI configuration. | null | true | false | 62 | 71 | null | OpenAICompletionProfileConfiguration | null | [
"self"
] | null | OpenAICompletionsProfileManager | Type: method
Member Name: get_default_profile
Qualified Name: fenic._inference.common_openai.openai_profile_manager.OpenAICompletionsProfileManager.get_default_profile
Docstring: Get default OpenAI configuration.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: OpenAIComp... |
module | utils | fenic._inference.common_openai.utils | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/common_openai/utils.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: utils
Qualified Name: fenic._inference.common_openai.utils
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
function | is_insufficient_quota_error | fenic._inference.common_openai.utils.is_insufficient_quota_error | Return True only for a 429 that indicates an exhausted account quota.
An ``insufficient_quota`` 429 cannot be resolved by retrying, so callers treat it
as fatal. This inspection is hardened against malformed or non-OpenAI 429 bodies
(proxies, gateways, unread streaming bodies): any failure to read or parse the
body re... | null | true | false | 13 | 30 | null | bool | null | [
"error"
] | null | null | Type: function
Member Name: is_insufficient_quota_error
Qualified Name: fenic._inference.common_openai.utils.is_insufficient_quota_error
Docstring: Return True only for a 429 that indicates an exhausted account quota.
An ``insufficient_quota`` 429 cannot be resolved by retrying, so callers treat it
as fatal. This insp... |
function | handle_openai_compatible_response | fenic._inference.common_openai.utils.handle_openai_compatible_response | null | null | true | false | 33 | 65 | null | tuple[Optional[Union[ParsedChoice, Choice]], Optional[Union[FatalException, TransientException]]] | null | [
"model_provider",
"model_name",
"request",
"response",
"request_key_generator"
] | null | null | Type: function
Member Name: handle_openai_compatible_response
Qualified Name: fenic._inference.common_openai.utils.handle_openai_compatible_response
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["model_provider", "model_name", "request", "response", "request_key_generat... |
module | anthropic | fenic._inference.anthropic | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/anthropic/__init__.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: anthropic
Qualified Name: fenic._inference.anthropic
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
module | anthropic_profile_manager | fenic._inference.anthropic.anthropic_profile_manager | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/anthropic/anthropic_profile_manager.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: anthropic_profile_manager
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | AnthropicProfileConfiguration | fenic._inference.anthropic.anthropic_profile_manager.AnthropicProfileConfiguration | Configuration for Anthropic model profiles.
Attributes:
thinking_enabled: Whether thinking/reasoning is enabled for this profile
thinking_token_budget: Token budget allocated for thinking/reasoning
uses_adaptive_thinking: Whether thinking_token_budget is an adaptive maximum rather than a fixed budget
t... | null | true | false | 18 | 35 | null | null | null | null | [
"BaseProfileConfiguration"
] | null | Type: class
Member Name: AnthropicProfileConfiguration
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager.AnthropicProfileConfiguration
Docstring: Configuration for Anthropic model profiles.
Attributes:
thinking_enabled: Whether thinking/reasoning is enabled for this profile
thinking_token_bu... |
method | __init__ | fenic._inference.anthropic.anthropic_profile_manager.AnthropicProfileConfiguration.__init__ | null | null | true | false | 0 | 0 | null | None | null | [
"self",
"thinking_enabled",
"thinking_token_budget",
"uses_adaptive_thinking",
"effort",
"thinking_config",
"output_config"
] | null | AnthropicProfileConfiguration | Type: method
Member Name: __init__
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager.AnthropicProfileConfiguration.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "thinking_enabled", "thinking_token_budget", "uses_adaptive_thinking", "e... |
class | AnthropicCompletionsProfileManager | fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager | Manages Anthropic-specific profile configurations.
This class handles the conversion of Fenic profile configurations to
Anthropic-specific configurations, including thinking/reasoning settings. | null | true | false | 38 | 128 | null | null | null | null | [
"ProfileManager[ResolvedAnthropicModelProfile, AnthropicProfileConfiguration]"
] | null | Type: class
Member Name: AnthropicCompletionsProfileManager
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager
Docstring: Manages Anthropic-specific profile configurations.
This class handles the conversion of Fenic profile configurations to
Anthropic-specific confi... |
method | __init__ | fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager.__init__ | Initialize the Anthropic 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 | 45 | 59 | null | null | null | [
"self",
"model_parameters",
"profile_configurations",
"default_profile_name"
] | null | AnthropicCompletionsProfileManager | Type: method
Member Name: __init__
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager.__init__
Docstring: Initialize the Anthropic profile configuration manager.
Args:
model_parameters: Parameters for the completion model
profile_configurations: Dictionary o... |
method | _process_profile | fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager._process_profile | Process Anthropic profile configuration.
Converts a Fenic profile configuration to an Anthropic-specific configuration,
handling thinking/reasoning settings based on model capabilities.
Args:
profile: The Fenic profile configuration to process
Returns:
Anthropic-specific profile configuration | null | false | true | 61 | 112 | null | AnthropicProfileConfiguration | null | [
"self",
"profile"
] | null | AnthropicCompletionsProfileManager | Type: method
Member Name: _process_profile
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager._process_profile
Docstring: Process Anthropic profile configuration.
Converts a Fenic profile configuration to an Anthropic-specific configuration,
handling thinking/reason... |
method | get_default_profile | fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager.get_default_profile | Get default Anthropic configuration.
Returns:
Default configuration for the model | null | true | false | 114 | 128 | null | AnthropicProfileConfiguration | null | [
"self"
] | null | AnthropicCompletionsProfileManager | Type: method
Member Name: get_default_profile
Qualified Name: fenic._inference.anthropic.anthropic_profile_manager.AnthropicCompletionsProfileManager.get_default_profile
Docstring: Get default Anthropic configuration.
Returns:
Default configuration for the model
Value: none
Annotation: none
is Public? : true
is Pr... |
module | anthropic_batch_chat_completions_client | fenic._inference.anthropic.anthropic_batch_chat_completions_client | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/anthropic/anthropic_batch_chat_completions_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: anthropic_batch_chat_completions_client
Qualified Name: fenic._inference.anthropic.anthropic_batch_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.anthropic.anthropic_batch_chat_completions_client.logger | null | null | true | false | 70 | 70 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.anthropic.anthropic_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 | AnthropicBatchCompletionsClient | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient | Anthropic batch chat completions client.
This client handles communication with Anthropic's Claude models for batch
chat completions. It supports streaming responses, structured output,
thinking/reasoning capabilities, and token counting with Anthropic-specific
adjustments. | null | true | false | 73 | 493 | null | null | null | null | [
"ProfileHashMixin",
"ModelClient[FenicCompletionsRequest, FenicCompletionsResponse]"
] | null | Type: class
Member Name: AnthropicBatchCompletionsClient
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient
Docstring: Anthropic batch chat completions client.
This client handles communication with Anthropic's Claude models for batch
chat completions. It... |
method | __init__ | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.__init__ | Initialize the Anthropic batch completions client.
Args:
rate_limit_strategy: Strategy for rate limiting requests
queue_size: Maximum size of the request queue
model: Anthropic model name to use
max_backoffs: Maximum number of retry backoffs
profiles: Dictionary of profile configurations
defaul... | null | true | false | 85 | 140 | null | null | null | [
"self",
"rate_limit_strategy",
"model",
"queue_size",
"max_backoffs",
"profiles",
"default_profile_name",
"cache",
"base_url",
"adaptive_estimation"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.__init__
Docstring: Initialize the Anthropic batch completions client.
Args:
rate_limit_strategy: Strategy for rate limiting requests
queue_size: Maximum size of... |
method | _resolve_profile_for_hash | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._resolve_profile_for_hash | null | null | false | true | 142 | 143 | null | Any | null | [
"self",
"profile_name"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _resolve_profile_for_hash
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._resolve_profile_for_hash
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "profile_name"]
Returns... |
method | make_single_request | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.make_single_request | Make a single completion request to Anthropic.
Handles both text and structured output requests, with support for
thinking/reasoning when enabled. Processes streaming responses and
extracts usage metrics.
Args:
request: The completion request to process
Returns:
Completion response, transient exception, or f... | null | true | false | 145 | 278 | null | Union[None, FenicCompletionsResponse, TransientException, FatalException] | null | [
"self",
"request"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.make_single_request
Docstring: Make a single completion request to Anthropic.
Handles both text and structured output requests, with support for
thinking/reas... |
method | _handle_text_streaming_response | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._handle_text_streaming_response | Handle streaming text response from Anthropic.
Processes streaming chunks to extract text content and usage data.
Args:
payload: The request payload sent to Anthropic
Returns:
Tuple of (content, usage_data) | null | false | true | 280 | 304 | null | tuple[str, Optional[anthropic.types.Usage]] | null | [
"self",
"payload"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _handle_text_streaming_response
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._handle_text_streaming_response
Docstring: Handle streaming text response from Anthropic.
Processes streaming chunks to extract text content and u... |
method | _handle_structured_output_streaming_response | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._handle_structured_output_streaming_response | Handle streaming structured output response from Anthropic.
Processes streaming chunks to extract JSON content from tool use and usage data.
Args:
payload: The request payload sent to Anthropic
Returns:
Tuple of (tool_use_content, usage_data) | null | false | true | 306 | 330 | null | tuple[str, Optional[anthropic.types.Usage]] | null | [
"self",
"payload"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _handle_structured_output_streaming_response
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._handle_structured_output_streaming_response
Docstring: Handle streaming structured output response from Anthropic.
Processes streami... |
method | estimate_response_format_tokens | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.estimate_response_format_tokens | Estimate token count for a response format schema.
Uses Anthropic's API to count tokens in a tool parameter that represents
the response format schema. Results are cached for performance.
Args:
response_format: Pydantic model class defining the response format
Returns:
Estimated token count for the response ... | null | true | false | 334 | 361 | null | int | null | [
"self",
"response_format"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: estimate_response_format_tokens
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.estimate_response_format_tokens
Docstring: Estimate token count for a response format schema.
Uses Anthropic's API to count tokens in a tool param... |
method | _estimate_structured_output_overhead | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._estimate_structured_output_overhead | Use Anthropic's API-based token counting for structured output.
Args:
response_format: Pydantic model class defining the response format
Returns:
Estimated token overhead for structured output | null | false | true | 363 | 372 | null | int | null | [
"self",
"response_format"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _estimate_structured_output_overhead
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._estimate_structured_output_overhead
Docstring: Use Anthropic's API-based token counting for structured output.
Args:
response_format: Py... |
method | _get_max_output_token_request_limit | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._get_max_output_token_request_limit | Get maximum output tokens including thinking budget.
Args:
request: The completion request
Returns:
Maximum output tokens (completion + thinking budget) | null | false | true | 374 | 395 | null | int | null | [
"self",
"request"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _get_max_output_token_request_limit
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._get_max_output_token_request_limit
Docstring: Get maximum output tokens including thinking budget.
Args:
request: The completion request
... |
method | count_tokens | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.count_tokens | Count tokens with Anthropic encoding adjustment.
Applies a tokenizer adjustment ratio to account for differences
between Anthropic's and OpenAI's tokenization.
Args:
messages: Messages to count tokens for
Returns:
Adjusted token count | null | true | false | 399 | 413 | null | int | null | [
"self",
"messages"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: count_tokens
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.count_tokens
Docstring: Count tokens with Anthropic encoding adjustment.
Applies a tokenizer adjustment ratio to account for differences
between Anthropic's and Open... |
method | estimate_tokens_for_request | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.estimate_tokens_for_request | Estimate the number of tokens for a request. | null | true | false | 415 | 433 | null | TokenEstimate | null | [
"self",
"request"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.estimate_tokens_for_request
Docstring: Estimate the number of tokens for a request.
Value: none
Annotation: none
is Public? : true
is Private? : false
... |
method | _estimate_output_tokens | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._estimate_output_tokens | Estimate output tokens for rate limiting. | null | false | true | 435 | 443 | null | int | null | [
"self",
"request"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _estimate_output_tokens
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._estimate_output_tokens
Docstring: Estimate output tokens for rate limiting.
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters:... |
method | _estimate_thinking_tokens_for_rate_limit | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._estimate_thinking_tokens_for_rate_limit | Estimate thinking tokens for throttling without using adaptive maxima. | null | false | true | 445 | 459 | null | int | null | [
"self",
"profile_config",
"completion_tokens"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: _estimate_thinking_tokens_for_rate_limit
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient._estimate_thinking_tokens_for_rate_limit
Docstring: Estimate thinking tokens for throttling without using adaptive maxima.
Value: none
Ann... |
method | get_metrics | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.get_metrics | Get current metrics.
Returns:
Current language model metrics | null | true | false | 461 | 467 | null | LMMetrics | null | [
"self"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.get_metrics
Docstring: Get current metrics.
Returns:
Current language model metrics
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters:... |
method | reset_metrics | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.reset_metrics | Reset metrics to initial state. | null | true | false | 469 | 471 | null | null | null | [
"self"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.reset_metrics
Docstring: Reset metrics to initial state.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent... |
method | create_response_format_tool | fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.create_response_format_tool | Create a tool parameter for structured output.
Converts a JSON schema to an Anthropic tool parameter for
structured output formatting.
Args:
response_format: Resolved JSON schema defining the response format
Returns:
Anthropic tool parameter | null | true | false | 473 | 493 | null | ToolParam | null | [
"self",
"response_format"
] | null | AnthropicBatchCompletionsClient | Type: method
Member Name: create_response_format_tool
Qualified Name: fenic._inference.anthropic.anthropic_batch_chat_completions_client.AnthropicBatchCompletionsClient.create_response_format_tool
Docstring: Create a tool parameter for structured output.
Converts a JSON schema to an Anthropic tool parameter for
struct... |
module | anthropic_provider | fenic._inference.anthropic.anthropic_provider | Anthropic model provider implementation. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/anthropic/anthropic_provider.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: anthropic_provider
Qualified Name: fenic._inference.anthropic.anthropic_provider
Docstring: Anthropic model provider implementation.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.anthropic.anthropic_provider.logger | null | null | true | false | 11 | 11 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.anthropic.anthropic_provider.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | AnthropicModelProvider | fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider | Anthropic implementation of ModelProvider. | null | true | false | 14 | 42 | null | null | null | null | [
"ModelProviderClass"
] | null | Type: class
Member Name: AnthropicModelProvider
Qualified Name: fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider
Docstring: Anthropic implementation of ModelProvider.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.__init__ | null | null | true | false | 17 | 18 | null | null | null | [
"self",
"base_url"
] | null | AnthropicModelProvider | Type: method
Member Name: __init__
Qualified Name: fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "base_url"]
Returns: none
Parent Class: AnthropicModelProvider |
method | create_client | fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.create_client | Create an Anthropic sync client instance. | null | true | false | 24 | 29 | null | null | null | [
"self"
] | null | AnthropicModelProvider | Type: method
Member Name: create_client
Qualified Name: fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.create_client
Docstring: Create an Anthropic sync client instance.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: AnthropicMod... |
method | create_aio_client | fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.create_aio_client | Create an Anthropic async client instance. | null | true | false | 31 | 36 | null | null | null | [
"self"
] | null | AnthropicModelProvider | Type: method
Member Name: create_aio_client
Qualified Name: fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.create_aio_client
Docstring: Create an Anthropic async client instance.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: Ant... |
method | validate_api_key | fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.validate_api_key | Validate Anthropic API key by making a minimal completion request. | null | true | false | 38 | 42 | null | None | null | [
"self"
] | null | AnthropicModelProvider | Type: method
Member Name: validate_api_key
Qualified Name: fenic._inference.anthropic.anthropic_provider.AnthropicModelProvider.validate_api_key
Docstring: Validate Anthropic API key by making a minimal completion request.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: ... |
module | anthropic_utils | fenic._inference.anthropic.anthropic_utils | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/anthropic/anthropic_utils.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: anthropic_utils
Qualified Name: fenic._inference.anthropic.anthropic_utils
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | TEXT_DELTA | fenic._inference.anthropic.anthropic_utils.TEXT_DELTA | null | null | true | false | 9 | 9 | null | null | 'text_delta' | null | null | null | Type: attribute
Member Name: TEXT_DELTA
Qualified Name: fenic._inference.anthropic.anthropic_utils.TEXT_DELTA
Docstring: none
Value: 'text_delta'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | MESSAGE_STOP | fenic._inference.anthropic.anthropic_utils.MESSAGE_STOP | null | null | true | false | 11 | 11 | null | null | 'message_stop' | null | null | null | Type: attribute
Member Name: MESSAGE_STOP
Qualified Name: fenic._inference.anthropic.anthropic_utils.MESSAGE_STOP
Docstring: none
Value: 'message_stop'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | INPUT_JSON_DELTA | fenic._inference.anthropic.anthropic_utils.INPUT_JSON_DELTA | null | null | true | false | 13 | 13 | null | null | 'input_json_delta' | null | null | null | Type: attribute
Member Name: INPUT_JSON_DELTA
Qualified Name: fenic._inference.anthropic.anthropic_utils.INPUT_JSON_DELTA
Docstring: none
Value: 'input_json_delta'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | CONTENT_BLOCK_DELTA | fenic._inference.anthropic.anthropic_utils.CONTENT_BLOCK_DELTA | null | null | true | false | 15 | 15 | null | null | 'content_block_delta' | null | null | null | Type: attribute
Member Name: CONTENT_BLOCK_DELTA
Qualified Name: fenic._inference.anthropic.anthropic_utils.CONTENT_BLOCK_DELTA
Docstring: none
Value: 'content_block_delta'
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | EPHEMERAL_CACHE_CONTROL | fenic._inference.anthropic.anthropic_utils.EPHEMERAL_CACHE_CONTROL | null | null | true | false | 17 | 17 | null | null | CacheControlEphemeralParam(type='ephemeral') | null | null | null | Type: attribute
Member Name: EPHEMERAL_CACHE_CONTROL
Qualified Name: fenic._inference.anthropic.anthropic_utils.EPHEMERAL_CACHE_CONTROL
Docstring: none
Value: CacheControlEphemeralParam(type='ephemeral')
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
function | convert_messages | fenic._inference.anthropic.anthropic_utils.convert_messages | Convert Fenic messages to Anthropic format.
Converts Fenic LMRequestMessages to Anthropic's TextBlockParam and
MessageParam format, including system prompt and conversation history.
Args:
messages: Fenic message format
Returns:
Tuple of (system_prompt, message_params) | null | true | false | 19 | 46 | null | tuple[TextBlockParam, list[MessageParam]] | null | [
"messages"
] | null | null | Type: function
Member Name: convert_messages
Qualified Name: fenic._inference.anthropic.anthropic_utils.convert_messages
Docstring: Convert Fenic messages to Anthropic format.
Converts Fenic LMRequestMessages to Anthropic's TextBlockParam and
MessageParam format, including system prompt and conversation history.
Args... |
module | openai | fenic._inference.openai | null | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openai/__init__.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai
Qualified Name: fenic._inference.openai
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
module | openai_batch_embeddings_client | fenic._inference.openai.openai_batch_embeddings_client | Client for making batch requests to OpenAI's embeddings API. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openai/openai_batch_embeddings_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_batch_embeddings_client
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client
Docstring: Client for making batch requests to OpenAI's embeddings API.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.openai.openai_batch_embeddings_client.logger | null | null | true | false | 25 | 25 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenAIBatchEmbeddingsClient | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient | Client for making batch requests to OpenAI's embeddings API. | null | true | false | 28 | 108 | null | null | null | null | [
"ModelClient[FenicEmbeddingsRequest, list[float]]"
] | null | Type: class
Member Name: OpenAIBatchEmbeddingsClient
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient
Docstring: Client for making batch requests to OpenAI's embeddings API.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: non... |
method | __init__ | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.__init__ | Initialize the OpenAI batch embeddings client.
Args:
rate_limit_strategy: Strategy for handling rate limits
queue_size: Size of the request queue
model: The model to use
max_backoffs: Maximum number of backoff attempts
base_url: Custom base URL for the OpenAI API | null | true | false | 31 | 63 | null | null | null | [
"self",
"rate_limit_strategy",
"model",
"queue_size",
"max_backoffs",
"base_url"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.__init__
Docstring: Initialize the OpenAI batch embeddings client.
Args:
rate_limit_strategy: Strategy for handling rate limits
queue_size: Size of the request queue
model: ... |
method | make_single_request | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.make_single_request | Make a single request to the OpenAI API.
Args:
request: The request to make
Returns:
The response from the API or an exception | null | true | false | 65 | 76 | null | Union[None, list[float], TransientException, FatalException] | null | [
"self",
"request"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.make_single_request
Docstring: Make a single request to the OpenAI API.
Args:
request: The request to make
Returns:
The response from the API or an exception
Value: ... |
method | estimate_tokens_for_request | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.estimate_tokens_for_request | Estimate the number of tokens for a request. Overriding the behavior in the base class
as Embedding models do not generate any output tokens.
Args:
request: The request to estimate tokens for
Returns:
TokenEstimate with input token count | null | true | false | 78 | 88 | null | TokenEstimate | null | [
"self",
"request"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.estimate_tokens_for_request
Docstring: Estimate the number of tokens for a request. Overriding the behavior in the base class
as Embedding models do not generate an... |
method | reset_metrics | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.reset_metrics | Reset all metrics to their initial values. | null | true | false | 90 | 92 | null | null | null | [
"self"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: reset_metrics
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.reset_metrics
Docstring: Reset all metrics to their initial values.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Clas... |
method | get_metrics | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.get_metrics | Get the current metrics.
Returns:
The current metrics | null | true | false | 94 | 100 | null | RMMetrics | null | [
"self"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: get_metrics
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.get_metrics
Docstring: Get the current metrics.
Returns:
The current metrics
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: RMMe... |
method | _get_max_output_token_request_limit | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient._get_max_output_token_request_limit | null | null | false | true | 102 | 103 | null | int | null | [
"self",
"request"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: _get_max_output_token_request_limit
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient._get_max_output_token_request_limit
Docstring: none
Value: none
Annotation: none
is Public? : false
is Private? : true
Parameters: ["self", "request"]
Returns:... |
method | validate_api_key | fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.validate_api_key | Validate the OpenAI API token by making a minimal API call. | null | true | false | 105 | 108 | null | null | null | [
"self"
] | null | OpenAIBatchEmbeddingsClient | Type: method
Member Name: validate_api_key
Qualified Name: fenic._inference.openai.openai_batch_embeddings_client.OpenAIBatchEmbeddingsClient.validate_api_key
Docstring: Validate the OpenAI API token by making a minimal API call.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Re... |
module | openai_provider | fenic._inference.openai.openai_provider | OpenAI model provider implementation. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openai/openai_provider.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_provider
Qualified Name: fenic._inference.openai.openai_provider
Docstring: OpenAI model provider implementation.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
attribute | logger | fenic._inference.openai.openai_provider.logger | null | null | true | false | 11 | 11 | null | null | logging.getLogger(__name__) | null | null | null | Type: attribute
Member Name: logger
Qualified Name: fenic._inference.openai.openai_provider.logger
Docstring: none
Value: logging.getLogger(__name__)
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
class | OpenAIModelProvider | fenic._inference.openai.openai_provider.OpenAIModelProvider | OpenAI implementation of ModelProvider. | null | true | false | 14 | 42 | null | null | null | null | [
"ModelProviderClass"
] | null | Type: class
Member Name: OpenAIModelProvider
Qualified Name: fenic._inference.openai.openai_provider.OpenAIModelProvider
Docstring: OpenAI implementation of ModelProvider.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Parent Class: none |
method | __init__ | fenic._inference.openai.openai_provider.OpenAIModelProvider.__init__ | null | null | true | false | 17 | 18 | null | null | null | [
"self",
"base_url"
] | null | OpenAIModelProvider | Type: method
Member Name: __init__
Qualified Name: fenic._inference.openai.openai_provider.OpenAIModelProvider.__init__
Docstring: none
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self", "base_url"]
Returns: none
Parent Class: OpenAIModelProvider |
method | create_client | fenic._inference.openai.openai_provider.OpenAIModelProvider.create_client | Create an OpenAI client instance. | null | true | false | 24 | 29 | null | null | null | [
"self"
] | null | OpenAIModelProvider | Type: method
Member Name: create_client
Qualified Name: fenic._inference.openai.openai_provider.OpenAIModelProvider.create_client
Docstring: Create an OpenAI client instance.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: OpenAIModelProvider |
method | create_aio_client | fenic._inference.openai.openai_provider.OpenAIModelProvider.create_aio_client | Create an OpenAI async client instance. | null | true | false | 31 | 36 | null | null | null | [
"self"
] | null | OpenAIModelProvider | Type: method
Member Name: create_aio_client
Qualified Name: fenic._inference.openai.openai_provider.OpenAIModelProvider.create_aio_client
Docstring: Create an OpenAI async client instance.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: none
Parent Class: OpenAIModelProv... |
method | validate_api_key | fenic._inference.openai.openai_provider.OpenAIModelProvider.validate_api_key | Validate OpenAI API key by listing models. | null | true | false | 38 | 42 | null | None | null | [
"self"
] | null | OpenAIModelProvider | Type: method
Member Name: validate_api_key
Qualified Name: fenic._inference.openai.openai_provider.OpenAIModelProvider.validate_api_key
Docstring: Validate OpenAI API key by listing models.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: ["self"]
Returns: None
Parent Class: OpenAIModelPro... |
module | openai_batch_chat_completions_client | fenic._inference.openai.openai_batch_chat_completions_client | Client for making batch requests to OpenAI's chat completions API. | /private/var/folders/w2/dyfkx_354cqghs4b74vb_x380000gn/T/fenic-clone-0.11.0-a2lcuovw/fenic/src/fenic/_inference/openai/openai_batch_chat_completions_client.py | true | false | null | null | null | null | null | null | null | null | Type: module
Member Name: openai_batch_chat_completions_client
Qualified Name: fenic._inference.openai.openai_batch_chat_completions_client
Docstring: Client for making batch requests to OpenAI's chat completions API.
Value: none
Annotation: none
is Public? : true
is Private? : false
Parameters: none
Returns: none
Pare... |
class | OpenAIBatchChatCompletionsClient | fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient | Client for making batch requests to OpenAI's chat completions API. | null | true | false | 36 | 171 | null | null | null | null | [
"ProfileHashMixin",
"ModelClient[FenicCompletionsRequest, FenicCompletionsResponse]"
] | null | Type: class
Member Name: OpenAIBatchChatCompletionsClient
Qualified Name: fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient
Docstring: Client for making batch requests to OpenAI's chat completions API.
Value: none
Annotation: none
is Public? : true
is Private? : false
Paramet... |
method | __init__ | fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient.__init__ | Initialize the OpenAI batch chat completions client.
Args:
rate_limit_strategy: Strategy for handling rate limits
queue_size: Size of the request queue
model: The model to use
max_backoffs: Maximum number of backoff attempts
profiles: Dictionary of profile configurations
default_profile_name: D... | null | true | false | 41 | 95 | null | null | null | [
"self",
"rate_limit_strategy",
"model",
"queue_size",
"max_backoffs",
"profiles",
"default_profile_name",
"cache",
"base_url",
"adaptive_estimation"
] | null | OpenAIBatchChatCompletionsClient | Type: method
Member Name: __init__
Qualified Name: fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient.__init__
Docstring: Initialize the OpenAI batch chat completions client.
Args:
rate_limit_strategy: Strategy for handling rate limits
queue_size: Size of the request ... |
method | make_single_request | fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient.make_single_request | Make a single request to the OpenAI API.
Args:
request: The request to make
Returns:
The response from the API or an exception | null | true | false | 99 | 111 | null | Union[None, FenicCompletionsResponse, TransientException, FatalException] | null | [
"self",
"request"
] | null | OpenAIBatchChatCompletionsClient | Type: method
Member Name: make_single_request
Qualified Name: fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient.make_single_request
Docstring: Make a single request to the OpenAI API.
Args:
request: The request to make
Returns:
The response from the API or an except... |
method | estimate_tokens_for_request | fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient.estimate_tokens_for_request | Estimate the number of tokens for a request.
Args:
request: The request to estimate tokens for
Returns:
TokenEstimate: The estimated token usage | null | true | false | 113 | 127 | null | TokenEstimate | null | [
"self",
"request"
] | null | OpenAIBatchChatCompletionsClient | Type: method
Member Name: estimate_tokens_for_request
Qualified Name: fenic._inference.openai.openai_batch_chat_completions_client.OpenAIBatchChatCompletionsClient.estimate_tokens_for_request
Docstring: Estimate the number of tokens for a request.
Args:
request: The request to estimate tokens for
Returns:
Tok... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.