sdkagent

mlflow API reference

400 public APIs from mlflow (mlflow/mlflow) — 118 classes, 77 functions, 205 methods. Signatures extracted by static analysis of the actual source.

Repository: mlflow/mlflow

KindCount
Classes118
Functions77
Methods205

API list

func.claude.skills.src.skills.commands.fetch_logs.to_seconds(ts:str) -> str
Truncate timestamp to seconds precision for comparison.
method.claude.skills.src.skills.github.client.GitHubClient.get_job(owner:str, repo:str, job_id:int) -> Job
Get a specific job.
method.claude.skills.src.skills.github.client.GitHubClient.get_job_run(owner:str, repo:str, run_id:int) -> JobRun
Get a specific workflow run.
method.claude.skills.src.skills.github.client.GitHubClient.get_jobs(owner:str, repo:str, run_id:int, attempt:int | None=None) -> AsyncIterator[Job]
Get jobs for a workflow run.
method.claude.skills.src.skills.github.client.GitHubClient.get_raw(endpoint:str) -> aiohttp.ClientResponse
Get raw response for streaming.
method.claude.skills.src.skills.github.client.GitHubClient.get_workflow_runs(owner:str, repo:str, head_sha:str | None=None, status:str | None=None) -> AsyncIterator[JobRun]
Get workflow runs for a repository.
methodbin.install.Tool.get_extract_type(url:str) -> ExtractType
Infer extract type from URL file extension.
methodbin.install.Tool.get_version_args() -> list[str]
Get version check arguments, defaulting to --version.
funcdev.check_patch_prs.fetch_patch_prs(version:str) -> dict[int, bool]
Fetch PRs labeled with `v{version}` from the MLflow repository.
funcdev.check_patch_prs.get_commits(branch:str) -> list[Commit]
Get the commits in the release branch via GitHub API (last 90 days).
funcdev.check_patch_prs.validate_version(version:str) -> None
Validate that the version has a micro version component.
classdev.clint.src.clint.linter.Position
Represents a position in source code with line and column.
classdev.clint.src.clint.linter.Range
Represents a range in source code with start and end positions.
methoddev.clint.src.clint.linter.Range.shift(offset:Position) -> 'Range'
Shift this range by the given position offset.
methoddev.clint.src.clint.resolver.Resolver.clear() -> None
Clear all name mappings.
methoddev.clint.src.clint.resolver.Resolver.exit_scope() -> None
Exit current scope by restoring the previous snapshot.
methoddev.clint.src.clint.resolver.Resolver.resolve(node:ast.expr) -> list[str] | None
Resolve a node to its fully qualified name parts.
methoddev.clint.src.clint.resolver.Resolver.scope() -> Iterator[None]
Context manager for automatic scope management.
methoddev.clint.src.clint.rules.lazy_import.LazyImport.check(module:str | None) -> bool
Check if importing the given module lazily should be flagged.
funcdev.clint.src.clint.utils.get_repo_root() -> Path
Find the git repository root directory with caching.
funcdev.clint.src.clint.utils.resolve_expr(expr:ast.expr) -> list[str] | None
Resolves `expr` to a list of attribute names.
funcdev.detect_flaky_tests.attempt_jobs(repo:str, run_id:int, attempt:int) -> list[dict[str, Any]]
All jobs for one run attempt (paginated: master has >20 jobs).
funcdev.detect_flaky_tests.failing_tests_from_log(repo:str, job_id:int) -> dict[str, str]
{nodeid: first-line error} parsed from a job's log.
funcdev.detect_flaky_tests.gh_api_text_bytes(path:str) -> str | None
Fetch a possibly-binary endpoint (e.g.
funcdev.detect_flaky_tests.parse_failing_tests(log:str) -> dict[str, str]
{nodeid: first-line error} parsed from raw Actions log text.
classdev.dev_stubs.StubResult
What a launcher must apply after installing stubs.
funcdev.dev_stubs.apply_to_environ(result:StubResult) -> None
Apply a StubResult's PATH prepend to ``os.environ`` in place.
funcdev.flavors.src.flavors._matrix.get_changed_flavors(changed_files:list[str], flavors:set[str]) -> set[str]
Detects changed flavors from a list of changed files.
funcdev.flavors.src.flavors._matrix.get_latest_micro_versions(versions:list[Version]) -> list[Version]
Returns the latest micro version in each minor version.
funcdev.flavors.src.flavors._update.update_version(src:str, key:str, new_version:str, category:str, update_max:bool) -> str
Examples ======== >>> src = ''' ...
classdev.gen_rest_api.API
Main API class for generating REST API documentation.
classdev.gen_rest_api.Message
A protobuf message containing fields.
classdev.gen_rest_api.ProtoEnum
A protobuf enum with a series of Values.
classdev.gen_rest_api.Service
A protobuf service containing RPC methods.
classdev.gen_rest_api.Value
An enum value within a ProtoEnum.
classdev.proto_plugin.ProtocPlugin
Protoc plugin implementation.
funcdev.pypi.src.pypi._client.get_package(name:str) -> Package
Fetch package metadata from PyPI.
funcdev.remove_experimental_decorators.get_mlflow_release_dates() -> dict[str, datetime]
Fetch MLflow release dates from PyPI API.
funcdev.remove_experimental_decorators.get_tracked_python_files() -> list[Path]
Get all tracked Python files in the repository.
funcdev.remove_experimental_decorators.main() -> None
Main entry point.
funcdev.update_changelog.batch_fetch_prs_graphql(pr_numbers:list[int]) -> list[PullRequest]
Batch fetch PR data using GitHub GraphQL API.
funcdev.update_mlflow_versions.post_release(new_version:str) -> None
Update MLflow package versions AFTER release.
funcdev.update_mlflow_versions.pre_release(new_version:str) -> None
Update MLflow package versions BEFORE release.
funcdev.update_mlflow_versions.update_versions(new_py_version:str, helm_app_version:str | None=None) -> None
`new_py_version` is either: - a release version (e.g.
funcfs2db.src.generate_synthetic_data.generate_logged_models(cfg:SizeConfig, experiments:list[ExperimentData]) -> list[str]
Returns list of model artifact URIs.
funcfs2db.src.generate_synthetic_data.generate_traces(cfg:SizeConfig, experiments:list[ExperimentData]) -> list[str]
Returns list of trace IDs.
classmlflow.ag2.ag2_logger.ChatState
Represents the state of a chat session.
funcmlflow.ai_commands.ai_command_utils.get_command(key:str) -> str
Get command content by key.
funcmlflow.ai_commands.ai_command_utils.get_command_body(key:str) -> str
Get command body content without frontmatter.
funcmlflow.ai_commands.ai_command_utils.list_commands(namespace:str | None=None) -> list[dict[str, Any]]
List all available commands with metadata.
funcmlflow.ai_commands.ai_command_utils.parse_frontmatter(content:str) -> tuple[dict[str, Any], str]
Parse frontmatter from markdown content.
funcmlflow.ai_commands.commands() -> None
Manage MLflow AI commands for LLMs.
funcmlflow.ai_commands.get_cmd(key:str) -> None
Get a specific AI command by key.
funcmlflow.ai_commands.list_cmd(namespace:str | None) -> None
List all available AI commands.
funcmlflow.ai_commands.run_cmd(key:str) -> None
Get a command formatted for execution by an AI assistant.
funcmlflow.artifacts.list_artifacts(artifact_uri:str | None=None, run_id:str | None=None, artifact_path:str | None=None, tracking_uri:str | None=None) -> list[FileInfo]
List artifacts at the specified URI.
funcmlflow.artifacts.load_dict(artifact_uri:str) -> dict[str, Any]
Loads the artifact contents as a dictionary.
funcmlflow.artifacts.load_text(artifact_uri:str) -> str
Loads the artifact contents as a string.
funcmlflow.assistant.clear_project_path_cache() -> None
Clear the project path cache to pick up config changes.
classmlflow.assistant.cli.Spinner
Simple spinner animation for long-running operations.
funcmlflow.assistant.cli.commands(configure:bool)
MLflow Assistant - AI-powered trace analysis.
classmlflow.assistant.config.AssistantConfig
Main configuration for MLflow Assistant.
methodmlflow.assistant.config.AssistantConfig.get_project_path(experiment_id:str) -> str | None
Get the project path for a given experiment ID.
methodmlflow.assistant.config.AssistantConfig.get_selected_provider() -> ProviderConfig | None
Get the currently selected provider.
methodmlflow.assistant.config.AssistantConfig.load() -> 'AssistantConfig'
Load the assistant configuration from disk.
methodmlflow.assistant.config.AssistantConfig.save() -> None
Save the assistant configuration to disk.
classmlflow.assistant.config.PermissionsConfig
Permission settings for the assistant provider.
classmlflow.assistant.config.SkillsConfig
Skills configuration for a provider.
funcmlflow.assistant.get_project_path(experiment_id:str) -> str | None
Get the project path for a given experiment ID.
classmlflow.assistant.providers.base.AssistantProvider
Abstract base class for assistant providers.
methodmlflow.assistant.providers.base.AssistantProvider.description() -> str
Return a short description of the provider.
methodmlflow.assistant.providers.base.AssistantProvider.name() -> str
Return the provider identifier (e.g., 'claude_code').
methodmlflow.assistant.providers.base.AssistantProvider.resolve_skills_path(base_directory:Path) -> Path
Resolve the skills installation path.
classmlflow.assistant.providers.base.CLINotInstalledError
Raised when the provider CLI is not installed.
classmlflow.assistant.providers.base.ProviderNotConfiguredError
Raised when a provider is not properly configured.
funcmlflow.assistant.providers.base.clear_config_cache() -> None
Clear the config cache to pick up config changes.
classmlflow.assistant.providers.claude_code.ClaudeCodeProvider
Assistant provider using Claude Code CLI.
methodmlflow.assistant.providers.claude_code.ClaudeCodeProvider.check_connection(echo:Callable[[str], None] | None=None) -> None
Check if Claude CLI is installed and authenticated.
methodmlflow.assistant.providers.claude_code.ClaudeCodeProvider.resolve_skills_path(base_directory:Path) -> Path
Resolve the path to the skills directory.
funcmlflow.assistant.skill_installer.list_installed_skills(destination_path:Path) -> list[str]
List installed skills in the specified destination path.
methodmlflow.assistant.types.Event.to_sse_event() -> str
Convert the event to an SSE event string.
classmlflow.assistant.types.Message
Structured message representation for assistant conversations.
classmlflow.assistant.types.TextBlock
Text content block.
classmlflow.assistant.types.ThinkingBlock
Thinking content block.
classmlflow.assistant.types.ToolResultBlock
Tool result content block.
classmlflow.assistant.types.ToolUseBlock
Tool use content block.
funcmlflow.claude_code.cli.commands()
Commands for autologging with MLflow.
funcmlflow.claude_code.cli.stop_hook() -> None
Legacy hook shim kept for older Python-hook installations.
classmlflow.claude_code.config.TracingStatus
Dataclass for tracing status information.
funcmlflow.claude_code.config.get_env_var(var_name:str, default:str='') -> str
Get environment variable with OS env taking highest priority.
funcmlflow.claude_code.config.get_tracing_status(settings_path:Path) -> TracingStatus
Get current tracing status from Claude settings.
funcmlflow.claude_code.config.load_claude_config(settings_path:Path) -> dict[str, Any]
Load existing Claude configuration from settings file.
funcmlflow.claude_code.config.save_claude_config(settings_path:Path, config:dict[str, Any]) -> None
Save Claude configuration to settings file.
funcmlflow.claude_code.plugin.disable_tracing_plugin(settings_path:Path) -> bool
Remove MLflow Claude config from settings.
funcmlflow.claude_code.tracing.get_logger() -> logging.Logger
Get the configured module logger.
funcmlflow.claude_code.tracing.setup_logging() -> logging.Logger
Set up logging directory and return configured logger.
funcmlflow.claude_code.tracing.setup_mlflow() -> None
Configure MLflow tracking URI and experiment.
funcmlflow.cli.crypto.commands()
MLflow cryptographic management CLI.
funcmlflow.cli.datasets.commands()
Manage GenAI evaluation datasets.
classmlflow.cli.genai_eval_utils.Assessment
Structured assessment data for a trace evaluation.
classmlflow.cli.genai_eval_utils.Cell
Structured cell data for table display with metadata.
classmlflow.cli.genai_eval_utils.EvalResult
Container for evaluation results for a single trace.
classmlflow.cli.genai_eval_utils.TableOutput
Container for formatted table data.
funcmlflow.cli.genai_eval_utils.format_table_output(output_data:list[EvalResult]) -> TableOutput
Format evaluation results as table data.
funcmlflow.cli.genai_eval_utils.resolve_scorers(scorer_names:list[str], experiment_id:str) -> list[Scorer]
Resolve scorer names to scorer objects.
funcmlflow.cli.scorers.commands()
Manage scorers, including LLM judges.
funcmlflow.cli.skills.view_command(skill_name:str)
View the details of an MLflow skill.
funcmlflow.cli.traces.commands()
Manage traces.
funcmlflow.cli.traces.delete_assessment(trace_id:str, assessment_id:str) -> None
Delete an assessment from a trace.
funcmlflow.cli.traces.delete_trace_tag(trace_id:str, key:str) -> None
Delete a tag from a trace.
funcmlflow.cli.traces.delete_traces(experiment_id:str, trace_ids:str | None=None, max_timestamp_millis:int | None=None, max_traces:int | None=None) -> None
Delete traces from an experiment.
funcmlflow.cli.traces.get_assessment(trace_id:str, assessment_id:str) -> None
Get assessment details as JSON.
funcmlflow.cli.traces.get_trace(trace_id:str, extract_fields:str | None=None, verbose:bool=False) -> None
All trace details will print to stdout as JSON format.
funcmlflow.cli.traces.set_trace_tag(trace_id:str, key:str, value:str) -> None
Set a tag on a trace.
funcmlflow.cli.traces.update_assessment(trace_id:str, assessment_id:str, value:str | None=None, rationale:str | None=None, metadata:str | None=None) -> None
Update an existing assessment.
methodmlflow.data.dataset.Dataset.digest() -> str
A unique hash or fingerprint of the dataset, e.g.
methodmlflow.data.dataset.Dataset.name() -> str
The name of the dataset, e.g.
methodmlflow.data.dataset.Dataset.to_dict() -> dict[str, str]
Create config dictionary for the dataset.
funcmlflow.data.dataset_registry.register_constructor(constructor_fn:Callable[[str | None, str | None], Dataset], constructor_name:str | None=None) -> str
Registers a dataset constructor.
methodmlflow.data.dataset_source.DatasetSource.load() -> Any
Loads files / objects referred to by the DatasetSource.
funcmlflow.data.dataset_source_registry.get_registered_sources() -> list[DatasetSource]
Obtains the registered dataset sources.
funcmlflow.data.digest_utils.compute_numpy_digest(features, targets=None) -> str
Computes a digest for the given numpy array.
funcmlflow.data.digest_utils.compute_pandas_digest(df) -> str
Computes a digest for the given Pandas DataFrame.
funcmlflow.data.digest_utils.get_normalized_md5_digest(elements:list[Any]) -> str
Computes a normalized digest for a list of hashable elements.
classmlflow.data.evaluation_dataset.EvaluationDataset
An input dataset for model evaluation.
methodmlflow.data.evaluation_dataset.EvaluationDataset.digest()
Return the digest of the dataset.
methodmlflow.data.evaluation_dataset.EvaluationDataset.path()
Dataset path
methodmlflow.data.evaluation_dataset.EvaluationDataset.predictions_name()
return predictions name
methodmlflow.data.evaluation_dataset.EvaluationDataset.targets_name()
return targets name
funcmlflow.data.get_source(dataset:DatasetEntity | DatasetInput | Dataset) -> DatasetSource
Obtains the source of the specified dataset or dataset input.
classmlflow.data.meta_dataset.MetaDataset
Dataset that only contains metadata.
methodmlflow.data.meta_dataset.MetaDataset.schema() -> Any | None
Returns the schema of the dataset.
methodmlflow.data.meta_dataset.MetaDataset.to_dict() -> dict[str, str]
Create config dictionary for the MetaDataset.
classmlflow.data.numpy_dataset.NumpyDataset
Represents a NumPy dataset for use with MLflow Tracking.
methodmlflow.data.numpy_dataset.NumpyDataset.features() -> np.ndarray | dict[str, np.ndarray]
The features of the dataset.
methodmlflow.data.numpy_dataset.NumpyDataset.profile() -> Any | None
A profile of the dataset.
methodmlflow.data.numpy_dataset.NumpyDataset.source() -> DatasetSource
The source of the dataset.
methodmlflow.data.numpy_dataset.NumpyDataset.targets() -> np.ndarray | dict[str, np.ndarray] | None
The targets of the dataset.
methodmlflow.data.numpy_dataset.NumpyDataset.to_dict() -> dict[str, str]
Create config dictionary for the dataset.
classmlflow.data.pandas_dataset.PandasDataset
Represents a Pandas DataFrame for use with MLflow Tracking.
methodmlflow.data.pandas_dataset.PandasDataset.df() -> pd.DataFrame
The underlying pandas DataFrame.
methodmlflow.data.pandas_dataset.PandasDataset.predictions() -> str | None
The name of the predictions column.
methodmlflow.data.pandas_dataset.PandasDataset.profile() -> Any | None
A profile of the dataset.
methodmlflow.data.pandas_dataset.PandasDataset.source() -> DatasetSource
The source of the dataset.
methodmlflow.data.pandas_dataset.PandasDataset.targets() -> str | None
The name of the target column.
methodmlflow.data.pandas_dataset.PandasDataset.to_dict() -> dict[str, str]
Create config dictionary for the dataset.
classmlflow.data.polars_dataset.PolarsDataset
A polars DataFrame for use with MLflow Tracking.
methodmlflow.data.polars_dataset.PolarsDataset.df() -> pl.DataFrame
Underlying DataFrame.
methodmlflow.data.polars_dataset.PolarsDataset.predictions() -> str | None
Name of the predictions column.
methodmlflow.data.polars_dataset.PolarsDataset.profile() -> PolarsDatasetProfile
Profile of the dataset.
methodmlflow.data.polars_dataset.PolarsDataset.source() -> DatasetSource
Source of the dataset.
methodmlflow.data.polars_dataset.PolarsDataset.targets() -> str | None
Name of the target column.
methodmlflow.data.polars_dataset.PolarsDataset.to_dict() -> PolarsDatasetConfig
Create config dictionary for the dataset.
classmlflow.data.spark_dataset.SparkDataset
Represents a Spark dataset (e.g.
methodmlflow.data.spark_dataset.SparkDataset.df()
The Spark DataFrame instance.
methodmlflow.data.spark_dataset.SparkDataset.predictions() -> str | None
The name of the predictions column.
methodmlflow.data.spark_dataset.SparkDataset.profile() -> Any | None
A profile of the dataset.
methodmlflow.data.spark_dataset.SparkDataset.schema() -> Schema | None
The MLflow ColSpec schema of the Spark dataset.
methodmlflow.data.spark_dataset.SparkDataset.source() -> SparkDatasetSource | DeltaDatasetSource
Spark dataset source information.
methodmlflow.data.spark_dataset.SparkDataset.to_dict() -> dict[str, str]
Create config dictionary for the dataset.
classmlflow.deployments.base.BaseDeploymentClient
Base class exposing Python model deployment APIs.
methodmlflow.deployments.base.BaseDeploymentClient.list_deployments(endpoint=None)
List deployments.
funcmlflow.deployments.base.target_help()
..
funcmlflow.deployments.cli.commands()
Deploy MLflow models to custom targets.
funcmlflow.deployments.cli.run_local(flavor, model_uri, target, name, config)
Deploy the model locally.
classmlflow.deployments.mlflow.MlflowDeploymentClient
Client for interacting with the MLflow AI Gateway.
methodmlflow.deployments.mlflow.MlflowDeploymentClient.create_deployment(name, model_uri, flavor=None, config=None, endpoint=None)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.create_endpoint(name, config=None)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.delete_deployment(name, config=None, endpoint=None)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.delete_endpoint(endpoint)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.get_deployment(name, endpoint=None)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.list_deployments(endpoint=None)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.update_deployment(name, model_uri=None, flavor=None, config=None, endpoint=None)
..
methodmlflow.deployments.mlflow.MlflowDeploymentClient.update_endpoint(endpoint, config=None)
..
classmlflow.deployments.openai.OpenAIDeploymentClient
Client for interacting with OpenAI endpoints.
methodmlflow.deployments.openai.OpenAIDeploymentClient.create_deployment(name, model_uri, flavor=None, config=None, endpoint=None)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.create_endpoint(name, config=None)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.delete_deployment(name, config=None, endpoint=None)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.delete_endpoint(endpoint)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.get_deployment(name, endpoint=None)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.list_deployments(endpoint=None)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.update_deployment(name, model_uri=None, flavor=None, config=None, endpoint=None)
..
methodmlflow.deployments.openai.OpenAIDeploymentClient.update_endpoint(endpoint, config=None)
..
classmlflow.diffusers.DiffusersAdapterModel
A loaded LoRA adapter referencing a HuggingFace base model.
classmlflow.dspy.callback.MlflowCallback
Callback for generating MLflow traces for DSPy components
funcmlflow.dspy.load.load_model(model_uri, dst_path=None)
Load a Dspy model from a run.
funcmlflow.dspy.util.log_dspy_dataset(dataset:list['Example'], file_name:str)
Log the DSPy dataset as a table.
funcmlflow.dspy.util.sanitize_params(params:dict[str, Any]) -> dict[str, Any]
Sanitize the parameters by removing the sensitive parameters.
classmlflow.dspy.wrapper.DspyChatModelWrapper
MLflow PyFunc wrapper class for Dspy chat models.
classmlflow.dspy.wrapper.DspyModelWrapper
MLflow PyFunc wrapper class for Dspy models.
classmlflow.entities._job.Job
MLflow entity representing a Job.
methodmlflow.entities._job.Job.job_id() -> str
String containing job ID.
methodmlflow.entities._job.Job.parsed_result() -> Any
Return the parsed result.
methodmlflow.entities._job.Job.result() -> str | None
String containing the job result or error message.
methodmlflow.entities._job.Job.retry_count() -> int
Integer containing the job retry count
methodmlflow.entities._job.Job.timeout() -> float | None
Job execution timeout in seconds.
methodmlflow.entities._job.Job.workspace() -> str | None
Workspace associated with this job.
classmlflow.entities._job_status.JobStatus
Enum for status of a Job.
methodmlflow.entities._job_status.JobStatus.from_int(status_int:int) -> 'JobStatus'
Convert integer status to JobStatus enum.
methodmlflow.entities._job_status.JobStatus.from_str(status_str:str) -> 'JobStatus'
Convert string status to JobStatus enum.
methodmlflow.entities._job_status.JobStatus.is_finalized(status:'JobStatus') -> bool
Determines whether or not a JobStatus is a finalized status.
methodmlflow.entities._job_status.JobStatus.to_int() -> int
Convert JobStatus enum to integer.
methodmlflow.entities._job_status.JobStatus.to_proto() -> int
Convert JobStatus enum to proto JobStatus enum value.
classmlflow.entities.assessment.Assessment
Base class for assessments that can be attached to a trace.
classmlflow.entities.assessment.ExpectationValue
Represents an expectation value.
classmlflow.entities.assessment.Feedback
Represents feedback about the output of an operation.
classmlflow.entities.assessment.FeedbackValue
Represents a feedback value.
classmlflow.entities.assessment.IssueReference
Represents a reference to an issue associated with a trace.
classmlflow.entities.assessment.IssueReferenceValue
Represents an issue reference value.
classmlflow.entities.assessment_source.AssessmentSource
Source of an assessment (human, LLM as a judge with GPT-4, etc).
classmlflow.entities.assessment_source.AssessmentSourceType
Enumeration and validator for assessment source types.
classmlflow.entities.dataset.Dataset
Dataset object associated with an experiment.
methodmlflow.entities.dataset.Dataset.digest() -> str
String digest of the dataset.
methodmlflow.entities.dataset.Dataset.name() -> str
String name of the dataset.
methodmlflow.entities.dataset.Dataset.profile() -> str
String profile of the dataset.
methodmlflow.entities.dataset.Dataset.schema() -> str
String schema of the dataset.
methodmlflow.entities.dataset.Dataset.source() -> str
String source of the dataset.
methodmlflow.entities.dataset.Dataset.source_type() -> str
String source_type of the dataset.
classmlflow.entities.dataset_input.DatasetInput
DatasetInput object associated with an experiment.
methodmlflow.entities.dataset_input.DatasetInput.dataset() -> Dataset
Dataset.
methodmlflow.entities.dataset_input.DatasetInput.tags() -> list[InputTag]
Array of input tags.
classmlflow.entities.dataset_record.DatasetRecord
Represents a single record in an evaluation dataset.
classmlflow.entities.dataset_record_source.DatasetRecordSource
Source of a dataset record.
classmlflow.entities.dataset_record_source.DatasetRecordSourceType
Enumeration for dataset record source types.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.delete_records(record_ids:list[str]) -> int
Delete specific records from the dataset.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.from_dict(data:dict[str, Any]) -> 'EvaluationDataset'
Create instance from dictionary representation.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.from_proto(proto:ProtoDataset) -> 'EvaluationDataset'
Create instance from protobuf representation.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.merge_records(records:list[dict[str, Any]] | 'pd.DataFrame' | list['Trace']) -> 'EvaluationDataset'
Merge new records with existing ones.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.profile() -> str | None
Dataset profile information.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.records() -> list[DatasetRecord]
Get dataset records, loading them if necessary.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.schema() -> str | None
Dataset schema information.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.to_df() -> 'pd.DataFrame'
Convert dataset records to a pandas DataFrame.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.to_dict() -> dict[str, Any]
Convert to dictionary representation.
methodmlflow.entities.evaluation_dataset.EvaluationDataset.to_proto() -> ProtoDataset
Convert to protobuf representation.
classmlflow.entities.experiment.Experiment
Experiment object.
methodmlflow.entities.experiment.Experiment.experiment_id()
String ID of the experiment.
methodmlflow.entities.experiment.Experiment.lifecycle_stage()
Lifecycle stage of the experiment.
methodmlflow.entities.experiment.Experiment.name()
String name of the experiment.
methodmlflow.entities.experiment.Experiment.trace_location() -> UnityCatalog | None
Trace storage location, if configured.
methodmlflow.entities.experiment.Experiment.workspace() -> str
Workspace that owns the experiment, if known.
classmlflow.entities.experiment_tag.ExperimentTag
Tag object associated with an experiment.
methodmlflow.entities.experiment_tag.ExperimentTag.key()
String name of the tag.
methodmlflow.entities.experiment_tag.ExperimentTag.value()
String value of the tag.
classmlflow.entities.file_info.FileInfo
Metadata about a file or directory.
methodmlflow.entities.file_info.FileInfo.file_size()
Size of the file or directory.
methodmlflow.entities.file_info.FileInfo.path()
String path of the file or directory.
classmlflow.entities.gateway_budget_policy.BudgetAction
Action to take when a budget is exceeded.
classmlflow.entities.gateway_budget_policy.BudgetDurationUnit
Duration unit for budget policy fixed windows.
classmlflow.entities.gateway_budget_policy.BudgetTargetScope
Target scope for a budget policy.
classmlflow.entities.gateway_budget_policy.BudgetUnit
Budget measurement unit.
classmlflow.entities.gateway_budget_policy.GatewayBudgetPolicy
Represents a budget policy for the AI Gateway.
classmlflow.entities.gateway_endpoint.FallbackConfig
Configuration for fallback routing strategy.
classmlflow.entities.gateway_endpoint.FallbackStrategy
Fallback strategy for routing.
classmlflow.entities.gateway_endpoint.GatewayEndpointModelConfig
Configuration for a model attached to an endpoint.
classmlflow.entities.gateway_endpoint.GatewayModelDefinition
Represents a reusable LLM model configuration.
classmlflow.entities.gateway_endpoint.GatewayModelLinkageType
Type of linkage between endpoint and model definition.
classmlflow.entities.gateway_endpoint.RoutingStrategy
Routing strategy for gateway endpoints.
classmlflow.entities.input_tag.InputTag
Input tag object associated with a dataset.
methodmlflow.entities.input_tag.InputTag.key() -> str
String name of the input tag.
methodmlflow.entities.input_tag.InputTag.value() -> str
String value of the input tag.
methodmlflow.entities.issue.Issue.from_dictionary(issue_dict:dict[str, Any]) -> Issue
Create Issue from dictionary representation.
methodmlflow.entities.issue.Issue.from_proto(proto:ProtoIssue) -> Issue
Create Issue from protobuf representation.
methodmlflow.entities.issue.Issue.to_dictionary() -> dict[str, Any]
Convert Issue to dictionary representation.
methodmlflow.entities.issue.Issue.to_proto() -> ProtoIssue
Convert Issue to protobuf representation.
classmlflow.entities.issue.IssueSeverity
Enum for severity level of an :py:class:`mlflow.entities.Issue`.
classmlflow.entities.issue.IssueStatus
Enum for status of an :py:class:`mlflow.entities.Issue`.
classmlflow.entities.logged_model_input.LoggedModelInput
ModelInput object associated with a Run.
methodmlflow.entities.logged_model_input.LoggedModelInput.model_id() -> str
Model ID.
classmlflow.entities.logged_model_output.LoggedModelOutput
ModelOutput object associated with a Run.
methodmlflow.entities.logged_model_output.LoggedModelOutput.model_id() -> str
Model ID
methodmlflow.entities.logged_model_output.LoggedModelOutput.step() -> str
Step at which the model was logged
classmlflow.entities.logged_model_parameter.LoggedModelParameter
MLflow entity representing a parameter of a Model.
methodmlflow.entities.logged_model_parameter.LoggedModelParameter.value()
String value of the parameter.
classmlflow.entities.logged_model_tag.LoggedModelTag
Tag object associated with a Model.
methodmlflow.entities.logged_model_tag.LoggedModelTag.key()
String name of the tag.
methodmlflow.entities.logged_model_tag.LoggedModelTag.value()
String value of the tag.
classmlflow.entities.metric.Metric
Metric object.
methodmlflow.entities.metric.Metric.dataset_digest() -> str | None
String.
methodmlflow.entities.metric.Metric.dataset_name() -> str | None
String.
methodmlflow.entities.metric.Metric.run_id() -> str | None
String.
methodmlflow.entities.metric.Metric.step()
Integer metric step (x-coordinate).
methodmlflow.entities.metric.Metric.value()
Float value of the metric.
classmlflow.entities.model_registry.model_version.ModelVersion
MLflow entity for Model Version.
methodmlflow.entities.model_registry.model_version.ModelVersion.creation_timestamp() -> int
Integer.
methodmlflow.entities.model_registry.model_version.ModelVersion.current_stage() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.description() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.last_updated_timestamp() -> int | None
Integer.
methodmlflow.entities.model_registry.model_version.ModelVersion.model_id() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.name() -> str
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.run_id() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.run_link() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.source() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.status() -> str
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.status_message() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.user_id() -> str | None
String.
methodmlflow.entities.model_registry.model_version.ModelVersion.version() -> str
Version
classmlflow.entities.model_registry.model_version_tag.ModelVersionTag
Tag object associated with a model version.
methodmlflow.entities.model_registry.model_version_tag.ModelVersionTag.key()
String name of the tag.
methodmlflow.entities.model_registry.model_version_tag.ModelVersionTag.value()
String value of the tag.
classmlflow.entities.model_registry.prompt.Prompt
Entity representing a prompt in the MLflow Model Registry.
methodmlflow.entities.model_registry.prompt.Prompt.creation_timestamp() -> int | None
The creation timestamp of the prompt.
methodmlflow.entities.model_registry.prompt.Prompt.description() -> str | None
The description of the prompt.
methodmlflow.entities.model_registry.prompt.Prompt.name() -> str
The name of the prompt.
methodmlflow.entities.model_registry.prompt.Prompt.tags() -> dict[str, str]
Prompt-level metadata as key-value pairs.
classmlflow.entities.model_registry.registered_model.RegisteredModel
MLflow entity for Registered Model.
methodmlflow.entities.model_registry.registered_model.RegisteredModel.creation_timestamp()
Integer.
methodmlflow.entities.model_registry.registered_model.RegisteredModel.description()
String.
methodmlflow.entities.model_registry.registered_model.RegisteredModel.last_updated_timestamp()
Integer.
methodmlflow.entities.model_registry.registered_model.RegisteredModel.name()
String.
methodmlflow.entities.model_registry.registered_model.RegisteredModel.workspace() -> str
Workspace name for the registered model.
classmlflow.entities.model_registry.registered_model_alias.RegisteredModelAlias
Alias object associated with a registered model.
methodmlflow.entities.model_registry.registered_model_alias.RegisteredModelAlias.alias()
String name of the alias.
classmlflow.entities.model_registry.registered_model_tag.RegisteredModelTag
Tag object associated with a registered model.
methodmlflow.entities.model_registry.registered_model_tag.RegisteredModelTag.key()
String name of the tag.
methodmlflow.entities.model_registry.registered_model_tag.RegisteredModelTag.value()
String value of the tag.
classmlflow.entities.param.Param
Parameter object.
methodmlflow.entities.param.Param.value()
String value of the parameter.
classmlflow.entities.presigned_upload.CreatePresignedUploadResponse
Response from creating a presigned upload URL.
classmlflow.entities.run.Run
Run object.
methodmlflow.entities.run.Run.data() -> RunData
The run data, including metrics, parameters, and tags.
methodmlflow.entities.run.Run.info() -> RunInfo
The run metadata, such as the run id, start time, and status.
methodmlflow.entities.run.Run.inputs() -> RunInputs
The run inputs, including dataset inputs.
methodmlflow.entities.run.Run.outputs() -> RunOutputs
The run outputs, including model outputs.
classmlflow.entities.run_data.RunData
Run data (metrics and parameters).
classmlflow.entities.run_info.RunInfo
Metadata about a run.
methodmlflow.entities.run_info.RunInfo.artifact_uri()
String root artifact URI of the run.
methodmlflow.entities.run_info.RunInfo.run_id()
String containing run id.
methodmlflow.entities.run_info.RunInfo.run_name()
String containing run name.
classmlflow.entities.run_inputs.RunInputs
RunInputs object.
methodmlflow.entities.run_inputs.RunInputs.dataset_inputs() -> list[DatasetInput]
Array of dataset inputs.
methodmlflow.entities.run_inputs.RunInputs.model_inputs() -> list[LoggedModelInput]
Array of model inputs.
classmlflow.entities.run_outputs.RunOutputs
RunOutputs object.
methodmlflow.entities.run_outputs.RunOutputs.model_outputs() -> list[LoggedModelOutput]
Array of model outputs.
classmlflow.entities.run_status.RunStatus
Enum for status of an :py:class:`mlflow.entities.Run`.
classmlflow.entities.run_tag.RunTag
Tag object associated with a run.
methodmlflow.entities.run_tag.RunTag.key()
String name of the tag.
methodmlflow.entities.run_tag.RunTag.value()
String value of the tag.
classmlflow.entities.span.NoOpSpan
No-op implementation of the Span interface.
classmlflow.entities.span.Span
A span object.
methodmlflow.entities.span.Span.attributes() -> dict[str, Any]
Get all attributes of the span.
methodmlflow.entities.span.Span.end_time_ns() -> int | None
The end time of the span in nanosecond.
methodmlflow.entities.span.Span.events() -> list[SpanEvent]
Get all events of the span.
methodmlflow.entities.span.Span.from_dict(data:dict[str, Any]) -> 'Span'
Create a Span object from the given dictionary.
methodmlflow.entities.span.Span.from_dict_v2(data:dict[str, Any]) -> 'Span'
Create a Span object from the given dictionary in v2 schema.
methodmlflow.entities.span.Span.get_attribute(key:str) -> Any | None
Get a single attribute value from the span.
methodmlflow.entities.span.Span.inputs() -> Any
The input values of the span.
methodmlflow.entities.span.Span.links() -> list['Link']
Get all links of the span.
methodmlflow.entities.span.Span.llm_cost() -> dict[str, float] | None
The cost information for the span in USD.
methodmlflow.entities.span.Span.model_name() -> str | None
The model name used in the span.
methodmlflow.entities.span.Span.name() -> str
The name of the span.
methodmlflow.entities.span.Span.outputs() -> Any
The output values of the span.
methodmlflow.entities.span.Span.parent_id() -> str | None
The span ID of the parent span.
methodmlflow.entities.span.Span.request_id() -> str
Deprecated.
methodmlflow.entities.span.Span.span_id() -> str
The ID of the span.
methodmlflow.entities.span.Span.span_type() -> str
The type of the span.
methodmlflow.entities.span.Span.start_time_ns() -> int
The start time of the span in nanosecond.
methodmlflow.entities.span.Span.status() -> SpanStatus
The status of the span.
classmlflow.entities.span.SpanType
Predefined set of span types.
funcmlflow.entities.span.create_mlflow_span(otel_span:Any, trace_id:str, span_type:str | None=None) -> Union['Span', 'LiveSpan', 'NoOpSpan']
Factory function to create a span object.
classmlflow.entities.span_event.CustomEncoder
Custom encoder to handle json serialization.
classmlflow.entities.span_log_level.SpanLogLevel
Log level (severity) for an MLflow trace span.
classmlflow.entities.span_status.SpanStatus
Status of the span or the trace.
methodmlflow.entities.span_status.SpanStatus.from_otel_status(otel_status:trace_api.Status) -> SpanStatus
Convert OpenTelemetry status object to our status object.
classmlflow.entities.span_status.SpanStatusCode
Enum for status code of a span
classmlflow.entities.trace.Trace
A trace object.
classmlflow.entities.trace_data.TraceData
A container object that holds the spans data of a trace.
methodmlflow.entities.trace_data.TraceData.intermediate_outputs() -> dict[str, Any] | None
..
methodmlflow.entities.trace_info.TraceInfo.cost() -> dict[str, float] | None
Returns the aggregated cost for the trace in USD.
methodmlflow.entities.trace_info.TraceInfo.from_dict(d:dict[str, Any]) -> 'TraceInfo'
Create a TraceInfoV3 object from a dictionary.
methodmlflow.entities.trace_info.TraceInfo.request_id() -> str
Deprecated.
methodmlflow.entities.trace_info.TraceInfo.request_metadata() -> dict[str, str]
Deprecated.
methodmlflow.entities.trace_info.TraceInfo.status() -> TraceStatus
Deprecated.
methodmlflow.entities.trace_info.TraceInfo.to_dict() -> dict[str, Any]
Convert the TraceInfoV3 object to a dictionary.
methodmlflow.entities.trace_info.TraceInfo.token_usage() -> dict[str, int] | None
Returns the aggregated token usage for the trace.
classmlflow.entities.trace_info_v2.TraceInfoV2
Metadata about a trace.
methodmlflow.entities.trace_info_v2.TraceInfoV2.trace_id() -> str
Returns the trace ID of the trace info.
classmlflow.entities.trace_location.MlflowExperimentLocation
Represents the location of an MLflow experiment.
classmlflow.entities.trace_location.TraceLocation
Represents the location where the trace is stored.
classmlflow.entities.trace_location.TraceLocationBase
Base class for trace location classes.
classmlflow.entities.trace_state.TraceState
Enum representing the state of a trace.
classmlflow.entities.trace_status.TraceStatus
Enum for status of an :py:class:`mlflow.entities.TraceInfo`.
classmlflow.entities.view_type.ViewType
Enum to filter requested experiment types.
classmlflow.entities.webhook.Webhook
MLflow entity for Webhook.
classmlflow.entities.webhook.WebhookEvent
Represents a webhook event with a resource and action.
classmlflow.entities.webhook.WebhookTestResult
MLflow entity for WebhookTestResult.
classmlflow.entities.workspace.TraceArchivalConfig
Python-facing configuration for workspace trace archival.
classmlflow.entities.workspace.Workspace
Minimal metadata describing a workspace.
classmlflow.error_classification.ErrorClass
Error class names for MLflow error classification.
classmlflow.error_classification.SqlState
SQLSTATE codes for MLflow error classification.
classmlflow.evaluation.assessment.Assessment
Assessment data associated with an evaluation result.
methodmlflow.evaluation.assessment.Assessment.error_code() -> str | None
The error code.
methodmlflow.evaluation.assessment.Assessment.error_message() -> str | None
The error message.
methodmlflow.evaluation.assessment.Assessment.from_dictionary(assessment_dict:dict[str, Any]) -> 'Assessment'
Create an Assessment object from a dictionary.
methodmlflow.evaluation.assessment.Assessment.metadata() -> dict[str, Any]
The metadata associated with the assessment.
methodmlflow.evaluation.assessment.Assessment.name() -> str
The name of the assessment.
methodmlflow.evaluation.assessment.Assessment.rationale() -> str | None
The rationale / justification for the assessment.
methodmlflow.evaluation.assessment.Assessment.source() -> AssessmentSource
The source of the assessment.
methodmlflow.evaluation.assessment.Assessment.value() -> bool | float | str
The assessment value.
classmlflow.evaluation.assessment.AssessmentEntity
Assessment data associated with an evaluation.
methodmlflow.evaluation.assessment.AssessmentEntity.boolean_value() -> bool | None
The boolean assessment value.

About this data

These signatures were extracted from the public source of mlflow/mlflow using Python's ast module. Argument names, default values, type annotations and return types are taken verbatim from the code. Implementation bodies are never stored. See how it works for details.

Back to all 805 libraries