Skip to content

Settings

osa_tool.config.settings

Pydantic models and settings for the osa_tool package.

ConfigManager

Manages configuration loading and provides model settings for different tasks.

__init__(args=None)

Initialize ConfigManager with CLI arguments.

Parameters:

Name Type Description Default
args Namespace | None

Command-line arguments (argparse.Namespace)

None

get_git_settings()

Get git settings.

Returns:

Name Type Description
GitSettings GitSettings

Git repository configuration

get_model_settings(task_type)

Get model settings for specific task type.

Parameters:

Name Type Description Default
task_type str

Type of task (docstring, readme, general, repository_quality, paper_claims, paper_verification)

required

Returns:

Type Description
ModelSettings

ModelSettings for the specified task type

get_paper_analysis_settings()

Return typed policy and execution settings for paper analysis.

get_prompts()

Get prompt loader.

Returns:

Name Type Description
PromptLoader PromptLoader

Loader for prompt templates

get_workflow_settings()

Get workflow settings.

Returns:

Name Type Description
WorkflowSettings WorkflowSettings

Workflow configuration

GitSettings

Bases: BaseModel

User repository settings for a remote codebase.

normalize_based_on_date(value) classmethod

Accept CLI strings and native TOML dates, storing them as an aware datetime.

set_git_attributes()

Parse and set Git repository attributes.

ModelGroupSettings

Bases: BaseModel

LLM model settings grouped by task type.

ModelSettings

Bases: BaseModel

LLM API model settings and parameters.

PaperAnalysisSettings

Bases: BaseModel

Policy and execution settings for the composed paper-analysis operation.

PaperClaimsSettings

Bases: BaseModel

Stable execution settings for PDF-to-typed-claims extraction.

to_pipeline_options()

Build paper-claims options without making config depend on its implementation at import time.

PaperMarkerSettings

Bases: BaseModel

Marker conversion settings used by the typed paper-claims stage.

PaperVerificationSettings

Bases: BaseModel

Bounded repository-context and claim-verification execution settings.

Settings

Bases: BaseModel

Pydantic settings model.

WorkflowSettings

Bases: BaseModel

Git workflow generation settings.