Skip to content

Configuration

Assertian keeps the configuration surface small by separating common Assertian settings from provider-specific settings.

The provider templates below are ready to download and copy into your repository.

Common AI settings

These settings are shared by every AI provider:

Setting Purpose
ai.enabled Enable or disable AI assistance.
ai.provider Select the configured provider.
ai.model Select the provider model or deployment identifier.
ai.features Enable Assertian AI features.
ai.max_input_tokens Maximum input-token budget Assertian allows itself to prepare for an AI request.
ai.max_output_tokens Maximum output tokens requested from the provider.
ai.max_requests Logical AI request budget shared across the run and validation retries.
ai.timeout_seconds Provider request timeout.

Why 500,000 input tokens?

500000 is an Assertian-side ceiling, not a promise that every model accepts a 500K request.

The effective request must still fit the selected provider/model capability. Assertian should cap the request when the selected model has a smaller supported input or context limit.

This is deliberately an explicit ceiling rather than an opaque auto value.

Choose your provider

Select a provider to see only the configuration and guidance for that provider.

Google Gemini configuration:

Download gemini.yml

mode: full
scope: changed
max_mutants: auto
timeout_minutes: 30

ai:
  enabled: true
  provider: gemini
  model: gemini-3.8-flash
  features:
    - explain_mutation
    - generate_tests
  max_input_tokens: 500000
  max_output_tokens: 8000
  max_requests: 3
  timeout_seconds: 30
  # Optional Gemini settings:
  # gemini:
  #   base_url: https://gateway.example/v1beta

Optional Gemini settings

ai:
  gemini:
    # Optional: route requests through a compatible gateway
    # base_url: https://gateway.example/v1beta

If base_url is omitted, Assertian uses the standard Gemini endpoint.

OpenAI configuration:

Download openai.yml

mode: full
scope: changed
max_mutants: auto
timeout_minutes: 30

ai:
  enabled: true
  provider: openai
  model: gpt-5.2
  features:
    - explain_mutation
    - generate_tests
  max_input_tokens: 500000
  max_output_tokens: 8000
  max_requests: 3
  timeout_seconds: 30
  # Optional OpenAI settings:
  # openai:
  #   base_url: https://gateway.example/v1
  #   organization: my-org
  #   project: my-project

Optional OpenAI settings

ai:
  openai:
    # Optional: route requests through a compatible gateway
    # base_url: https://gateway.example/v1

    # Optional: organization and project identifiers
    # organization: my-org
    # project: my-project

Assertian forwards these settings only when they are configured.

Anthropic configuration:

Download anthropic.yml

mode: full
scope: changed
max_mutants: auto
timeout_minutes: 30

ai:
  enabled: true
  provider: anthropic
  model: claude-sonnet-4-6
  features:
    - explain_mutation
    - generate_tests
  max_input_tokens: 500000
  max_output_tokens: 8000
  max_requests: 3
  timeout_seconds: 30
  # Optional Anthropic settings:
  # anthropic:
  #   base_url: https://gateway.example/v1

Optional Anthropic settings

ai:
  anthropic:
    # Optional: route requests through a compatible gateway
    # base_url: https://gateway.example/v1

If base_url is omitted, Assertian uses the standard Anthropic endpoint.

Experimental — Early Access: AWS Bedrock integration brings Assertian AI workflows to AWS-managed foundation models through the AWS SDK credential chain and the Bedrock Runtime Converse API.

Download bedrock.yml

mode: full
scope: changed
max_mutants: auto
timeout_minutes: 30

ai:
  enabled: true
  provider: bedrock
  model: amazon.nova-micro-v1:0
  features:
    - explain_mutation
    - generate_tests
  max_input_tokens: 500000
  max_output_tokens: 8000
  max_requests: 3
  timeout_seconds: 30
  # Optional Bedrock settings:
  # bedrock:
  #   region: us-east-1
  #   endpoint_url: https://...
  #   guardrail_identifier: ...
  #   guardrail_version: "1"
  #   guardrail_trace: enabled

Optional Bedrock settings

  • endpoint_url — use a custom Bedrock Runtime endpoint when required by your AWS environment.
  • guardrail_identifier + guardrail_version — enable a Bedrock Guardrail. Configure both together.
  • guardrail_trace — optionally request guardrail trace information when a guardrail is configured.

Omitted options are not sent to Bedrock.

AWS credentials

Assertian uses the AWS SDK credential chain, so credentials can be supplied through your standard AWS environment, profile, or workload identity setup.

Install the optional AWS dependency:

pip install "assertian[aws]"

Experimental — Early Access: Azure OpenAI / Microsoft Foundry integration brings Assertian AI workflows to Azure-hosted deployments.

Download azure.yml

mode: full
scope: changed
max_mutants: auto
timeout_minutes: 30

ai:
  enabled: true
  provider: azure
  model: company-approved-deployment
  features:
    - explain_mutation
    - generate_tests
  max_input_tokens: 500000
  max_output_tokens: 8000
  max_requests: 3
  timeout_seconds: 30
  # Optional Azure settings:
  # azure:
  #   endpoint: https://YOUR-RESOURCE.openai.azure.com
  #   api_version: v1

Optional Azure settings

  • api_version — explicitly select the Azure deployment-style API version when your Azure endpoint uses that API shape.
  • endpoint is required and identifies the Azure OpenAI / Microsoft Foundry resource.

Assertian supports the current Azure OpenAI / Foundry /openai/v1/chat/completions request shape. When api_version is configured, Assertian uses the deployment-style endpoint with that API version.

Experimental — Early Access: Internal and self-hosted model gateways can connect to Assertian through the OpenAI-compatible provider interface.

Download openai_compatible.yml

mode: full
scope: changed
max_mutants: auto
timeout_minutes: 30

ai:
  enabled: true
  provider: openai_compatible
  model: company-approved-model
  features:
    - explain_mutation
    - generate_tests
  max_input_tokens: 500000
  max_output_tokens: 8000
  max_requests: 3
  timeout_seconds: 30
  # Optional internal gateway settings:
  # openai_compatible:
  #   base_url: https://ai-gateway.corp.example/v1
  #   api_key_env: ASSERTIAN_AI_API_KEY

Optional internal gateway settings

  • api_key_env — optionally name the environment variable containing the gateway API key.
  • Authentication is optional. If the configured environment variable resolves to a key, Assertian sends an Authorization header; otherwise it sends no authentication header.

The gateway must expose an OpenAI-compatible Chat Completions endpoint.

Start from a template

The same YAML examples are included in the Assertian package. You can download one from these docs or create one locally with assertian config init --provider <provider>.

CLI helpers

List the packaged examples:

assertian config examples

Print a template:

assertian config example gemini

Create .assertian.yml directly:

assertian config init --provider gemini

Use --output to choose another destination:

assertian config example gemini --output .assertian.yml

Use --force with config init only when you intentionally want to replace an existing file.

No silent provider mixing

For example, ai.provider: gemini together with an ai.openai block is invalid. Remove the unused provider block or select OpenAI.

Enterprise, private, and internal hosting

Enterprise deployment is a first-class configuration concern. Assertian provides stable integrations for its core providers and Experimental — Early Access integrations for additional enterprise hosting environments.

Current support

Deployment Status Configuration approach
Gemini Supported ai.provider: gemini; optional ai.gemini.base_url
OpenAI Supported ai.provider: openai; optional ai.openai.base_url, organization, and project
Anthropic Supported ai.provider: anthropic; optional ai.anthropic.base_url
AWS Bedrock Experimental ai.provider: bedrock; optional Bedrock request controls
Azure OpenAI / Microsoft Foundry Experimental ai.provider: azure; endpoint/deployment configuration
Internal / self-hosted OpenAI-compatible gateway Experimental ai.provider: openai_compatible; required base_url

Internal AI gateways

For an organization that exposes a provider-compatible API behind an internal gateway, configure the gateway URL only when the selected Assertian adapter supports that base_url option.

For example:

ai:
  provider: openai
  model: company-approved-deployment
  openai:
    base_url: https://ai-gateway.corp.example/v1

Assertian does not add an empty or unused provider parameter to the request. Optional provider settings are forwarded only when configured.

AWS Bedrock

AWS Bedrock is available as an Experimental — Early Access integration. It uses the AWS SDK credential chain and the Bedrock Runtime Converse API. Install the optional AWS dependency before using it.

AWS supports private VPC connectivity to Bedrock through AWS PrivateLink, which is relevant to enterprise deployments that require private network routing.

Azure OpenAI / Microsoft Foundry

Azure OpenAI / Microsoft Foundry is available as an Experimental — Early Access integration. Configure the Azure endpoint and deployment/model identifier explicitly.

Azure supports private endpoints for Azure OpenAI resources, which is relevant to organizations that require private network access.

Self-hosted models

Self-hosted models are not a single API contract. They may expose OpenAI-compatible, Anthropic-compatible, or another provider-specific API.

Assertian provides an Experimental — Early Access openai_compatible integration for internal/self-hosted gateways that expose an OpenAI-compatible Chat Completions API.

Experimental — Early Access

AWS Bedrock, Azure OpenAI / Microsoft Foundry, and OpenAI-compatible internal hosting are available as early-access integrations. Their provider-specific configuration and capabilities may evolve as Assertian incorporates enterprise feedback and adapts to changes in the underlying provider platforms.