Skip to main content

DeepAgents harness profile for GigaChat

Project description

deepagents-gigachat

A HarnessProfile for deepagents tuned for GigaChat models.

The profile replaces the default deepagents system prompt, rewrites the descriptions of file tools (ls, read_file, grep, edit_file) to match GigaChat's tool-calling behavior, and adds a think middleware tool for structured intermediate reasoning.

Once installed, the profile is registered automatically via the deepagents.harness_profiles entry point — no code changes required.

Structure

  • deepagents_gigachat/harness_profile.py — GigaChat HarnessProfile implementation
  • deepagents_gigachat/prompts.py — base prompt used by the profile
  • deepagents_gigachat/__init__.py — public entry point exporting register_harness()

Requirements

  • Python 3.12+
  • uv (for dependency installation and execution)

Installation

uv sync

Once published to PyPI, downstream users can install with:

pip install deepagents-gigachat

Configuration

Provide one of the authentication options in your shell environment. If your launcher loads dotenv files, for example deepagents-cli, these values can also live in .env:

  • GIGACHAT_CREDENTIALS
  • or GIGACHAT_USER + GIGACHAT_PASSWORD

Optional GigaChat settings:

GIGACHAT_BASE_URL="https://gigachat.sberdevices.ru/v1"
GIGACHAT_MODEL="GigaChat-3-Ultra"
GIGACHAT_VERIFY_SSL_CERTS=False
GIGACHAT_PROFANITY_CHECK=False

Use With deepagents

Install this package into the same Python environment where deepagents runs:

pip install deepagents-gigachat

For local development, install the built wheel instead:

uv build
uv pip install dist/*.whl

After installation, deepagents discovers the profile automatically through the deepagents.harness_profiles entry point:

[project.entry-points."deepagents.harness_profiles"]
gigachat = "deepagents_gigachat:register_harness"

The package entry point is named gigachat for discovery. The harness profile itself is registered under the provider key giga, matching the provider key used by deepagents.

Use With deepagents-cli

Install the CLI and GigaChat provider into the same environment:

uv pip install deepagents-cli langchain-gigachat deepagents-gigachat

Then configure ~/.deepagents/config.toml:

[models]
default = "gigachat:GigaChat-3-Ultra"

[models.providers.gigachat]
models = [
    "GigaChat-3-Ultra",
    "GigaChat-2-Max",
    "GigaChat-Max",
    "GigaChat-Pro",
    "GigaChat",
]
class_path = "langchain_gigachat.chat_models.gigachat:GigaChat"
api_key_env = "GIGACHAT_CREDENTIALS"

[models.providers.gigachat.params]
base_url = "https://gigachat.sberdevices.ru/v1"
verify_ssl_certs = false
profanity_check = false
timeout = 600

[models.providers.gigachat.profile]
tool_calling = true
default_model_hint = "GigaChat-3-Ultra"

If you use GIGACHAT_USER and GIGACHAT_PASSWORD instead of GIGACHAT_CREDENTIALS, remove api_key_env from the config and keep the user and password values in .env or shell environment variables.

Run the CLI:

deepagents

Lint

Linting, tests, and package build checks are required in CI:

uv run ruff check .
uv run pytest
uv build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepagents_gigachat-0.0.1a1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepagents_gigachat-0.0.1a1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file deepagents_gigachat-0.0.1a1.tar.gz.

File metadata

  • Download URL: deepagents_gigachat-0.0.1a1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for deepagents_gigachat-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 611ee00904f806a8d902b1e90ee2aa88ac8c29445a1c6674771de3764b243e3d
MD5 0ebb17a7abf4540cdd9f0ba6b13ac299
BLAKE2b-256 905a0be62de30f7850d27a356e73d0e140950c669a86514bdc7bc5bee143e90e

See more details on using hashes here.

File details

Details for the file deepagents_gigachat-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: deepagents_gigachat-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for deepagents_gigachat-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0d067054315953a6815edbf6103ca58f1b171a1c05a644052ffbb0e42e56560
MD5 19b00ee746567ff4dde6af790dfe1383
BLAKE2b-256 5e4a9131fb43b6f76045718e96d6aeedef9ede22ab071944025abc7c6c977f8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page