{"data":{"slug":"blackhc-llm-strategy","name":"llm-strategy","tagline":"Python library for strongly typed interaction with LLMs","github_url":"https://github.com/BlackHC/llm-strategy","owner":"BlackHC","repo":"llm-strategy","owner_avatar_url":"https://avatars.githubusercontent.com/u/729312?v=4","primary_language":"Python","stars":401,"forks":22,"topics":["gpt","langchain","llm","openai","pydantic","python","strongly-typed"],"archived":false,"github_pushed_at":"2025-03-03T20:31:25+00:00","maintenance_label":"Dormant","stars_delta_30d":0,"url":"https://www.graphcanon.com/tools/blackhc-llm-strategy","markdown_url":"https://www.graphcanon.com/tools/blackhc-llm-strategy.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/blackhc-llm-strategy","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=blackhc-llm-strategy","description":"Directly Connecting Python to LLMs via Strongly-Typed Functions, Dataclasses, Interfaces & Generic Types","homepage_url":"https://blackhc.github.io/llm-strategy/","license":"MIT","open_issues":5,"watchers":4,"ai_summary":"This repository offers a way to interface Python programs with language models using type checking and strong typing principles.","readme_excerpt":"## Getting started with contributing\n\nClone the repository first. Then, install the environment and the pre-commit hooks with \n\n```bash\nmake install\n```\n\nThe CI/CD\npipeline will be triggered when you open a pull request, merge to main,\nor when you create a new release.\n\nTo finalize the set-up for publishing to PyPi or Artifactory, see\n[here](https://fpgmaas.github.io/cookiecutter-poetry/features/publishing/#set-up-for-pypi).\nFor activating the automatic documentation with MkDocs, see\n[here](https://fpgmaas.github.io/cookiecutter-poetry/features/mkdocs/#enabling-the-documentation-on-github).\nTo enable the code coverage reports, see [here](https://fpgmaas.github.io/cookiecutter-poetry/features/codecov/).","github_created_at":"2022-12-21T00:23:47+00:00","created_at":"2026-07-11T10:44:27.926608+00:00","updated_at":"2026-10-16T06:00:52.373011+00:00","categories":[{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"gpt","name":"gpt"},{"slug":"langchain","name":"langchain"},{"slug":"llm","name":"llm"},{"slug":"openai","name":"openai"},{"slug":"pydantic","name":"pydantic"},{"slug":"python","name":"python"}],"trust":{"provenance":{"is_fork":false,"github_id":580595594,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-10-16T06:00:51.044Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":591,"last_release_at":"2023-12-27T19:31:17Z","stars_delta_30d":0,"open_issues_delta_30d":0},"security_summary":{"last_scan_at":"2026-10-04T04:00:48.629038+00:00","scan_profile":"deps_dev","status":"no_lockfile","critical_count":0,"high_count":0,"medium_count":0,"low_count":0,"scanner":"deps.dev@v1","scan_id":"dd92d649-a750-490d-8f6b-f57c6a3c674c","pending_review_count":0}},"capability_facts":{"mcp":{"method":"github-tree-and-contents@2","reason":"No explicit MCP server declaration was found in the inspected manifests. Other layouts and implementations were not tested.","source":"repo_scan","status":"unknown","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.423Z","server_manifest":null},"scan":{"method":"github-tree-and-contents@2","source":"repo_scan","status":"complete","version":2,"coverage":{"scope":"bounded-repository-manifests","tree_complete":true,"selected_files":2,"candidate_files":2},"revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.423Z","observations":[{"path":"@revision","bytes":3412,"status":"present","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/commit/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","http_status":200,"observed_at":"2026-10-16T06:00:51.710Z"},{"path":"@tree","bytes":18474,"status":"present","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","http_status":200,"observed_at":"2026-10-16T06:00:51.836Z"},{"path":"docker-compose.yml","reason":"not-listed-in-complete-tree","status":"not-found","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.836Z"},{"path":"Dockerfile","bytes":501,"status":"present","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/blob/ce246ebcf1e92a04f1571858ed22abc2f1ab122a/Dockerfile","http_status":200,"observed_at":"2026-10-16T06:00:51.971Z"},{"path":"mcp.json","reason":"not-listed-in-complete-tree","status":"not-found","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.836Z"},{"path":"package.json","reason":"not-listed-in-complete-tree","status":"not-found","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.836Z"},{"path":"pyproject.toml","bytes":2012,"status":"present","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/blob/ce246ebcf1e92a04f1571858ed22abc2f1ab122a/pyproject.toml","http_status":200,"observed_at":"2026-10-16T06:00:51.972Z"},{"path":"server.json","reason":"not-listed-in-complete-tree","status":"not-found","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.836Z"}]},"languages":{"value":["python"],"method":"github-tree-and-contents@2","source":"github.language+pyproject.toml","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/tree/ce246ebcf1e92a04f1571858ed22abc2f1ab122a","observed_at":"2026-10-16T06:00:51.423Z"},"has_docker":{"value":true,"method":"repository-declaration@2","source":"dockerfile:Dockerfile","revision":"ce246ebcf1e92a04f1571858ed22abc2f1ab122a","source_url":"https://github.com/BlackHC/llm-strategy/blob/ce246ebcf1e92a04f1571858ed22abc2f1ab122a/Dockerfile","observed_at":"2026-10-16T06:00:51.423Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-10-16T06:00:51.423Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["You need to enforce strict type safety when working with LLMs","Your project benefits from integrating with Pydantic for schema validation"],"when_not_to_use":["If loose or dynamic typing offers better flexibility for your application","When you prefer frameworks that do not have a steep learning curve due to advanced type annotations"],"source":"enrich:decision_facts","observed_at":"2026-07-15T10:04:25.164Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"Unverified catalog guidance: llm-strategy is a Python library promoting type safety in interactions with language models through its use of strongly typed functions and dataclasses."}]}}