agentleFS
LangChainKnown publisherlangchain-ai/langchain-azure/libs/azure-ai/AGENTS.md

langchain-azure / azure-ai

AGENTS.md148 starsChanged 3 months agoMITView on GitHub

Apply these instructions to libs/azure-ai/ in addition to the repository instructions.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep implementations concise, focused, and self-documenting through descriptive names, precise type hints, and straightforward control flow.

    line 7
  2. Distinctive:

    Keep directory and module organization consistent with existing conventions.

    line 9
  3. Distinctive:

    Keep internal comments sparse.

    line 10
  4. Distinctive:

    Keep feature PRs focused and reviewable.

    line 14
  5. Distinctive:

    Prefer consistent behavior across existing and new feature paths.

    line 17
  6. Distinctive:

    Before opening a PR, consider using an available AI tool to review the proposed changes for issues.

    line 19
  7. Distinctive:

    After pushing new commits to any PR, review its title and description.

    line 20
  8. Distinctive:

    Treat public APIs as downstream compatibility contracts.

    line 24
  9. Distinctive:

    Before exposing or changing an API, work through downstream usage, edge cases, error handling, sync/async behavior, and compatibility with …

    line 25
  10. Distinctive:

    Every public API, class, and method must have complete Google-style docstrings.

    line 27
  11. Very specific:

    Ensure extensions work across the Python versions required by the repository instructions and the upstream dependency ranges declared in …

    line 32
  12. Distinctive:

    When working on agent hosting, consult these upstream SDK implementations as needed:

    line 39
  13. Distinctive:

    When adding or changing published-package examples, validate the affected examples with the documented versions and extras in a clean …

    line 48
  14. Distinctive:

    Add a focused regression test that reproduces the bug using the existing test suite and conventions.

    line 53
  15. Distinctive:

    Run it and confirm it fails for the expected reason before changing the implementation.

    line 54
  16. Distinctive:

    When you discover outdated guidance in an applicable AGENTS.md, verify it against the current codebase and authoritative documentation, …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

langchain-azure-ai Instructions

Apply these instructions to libs/azure-ai/ in addition to the repository instructions.

Code Quality

  • Keep implementations concise, focused, and self-documenting through descriptive names, precise type hints, and straightforward control flow. Preserve correctness and clarity when simplifying code.
  • Reuse existing helpers and upstream abstractions; add new abstractions only when they solve a concrete need.
  • Keep directory and module organization consistent with existing conventions. Avoid excessively long files; split code by cohesive responsibilities when it improves readability and navigation, without unnecessary fragmentation.
  • Keep internal comments sparse. Explain non-obvious rationale or constraints rather than narrating what the code does.

Change Scope and Reviewability

  • Keep feature PRs focused and reviewable; exclude unrelated refactors, cleanup, and pre-existing bug fixes unless the feature requires them.
  • Compare suspected issues against the PR base before reporting them; pre-existing issues are non-blocking unless the feature requires a fix.
  • Understand the relevant call flow and change scope before reviewing details. Follow the requested focus, distinguish correctness findings from readability suggestions, and briefly state review coverage and limitations.
  • Prefer consistent behavior across existing and new feature paths. If alignment expands scope, document temporary differences with TODOs for a follow-up PR. Accept deferral of unrelated fixes or alignment when the feature works correctly without regressions.
  • When scope analysis shows a feature is too large for one reviewable PR, plan independently reviewable, working increments, each with its required tests and documentation. Record the plan and a TODO checklist in the relevant design or feature documentation, clearly separating the current PR's scope from deferred work.
  • Before opening a PR, consider using an available AI tool to review the proposed changes for issues. This is optional and does not replace human review.
  • After pushing new commits to any PR, review its title and description; update them as needed to describe the current scope, behavior, and validation results for reviewers, and remove outdated details from earlier revisions.

Public APIs and Documentation

  • Treat public APIs as downstream compatibility contracts. Preserve existing import paths, signatures, defaults, return types, and documented behavior; prefer backward-compatible changes.
  • Before exposing or changing an API, work through downstream usage, edge cases, error handling, sync/async behavior, and compatibility with upstream contracts. Cover affected public behavior with tests.
  • Obtain explicit approval before intentional breaking changes, and provide a deprecation or migration path.
  • Every public API, class, and method must have complete Google-style docstrings. Document purpose, parameters and defaults, return values, raised exceptions, and important behavior or constraints as applicable; include usage examples where helpful.

Upstream Alignment and Compatibility

  • Align class design, naming, interfaces, and extension patterns with the corresponding LangChain or LangGraph abstractions. Prefer supported upstream extension points over private implementation details.
  • Ensure extensions work across the Python versions required by the repository instructions and the upstream dependency ranges declared in pyproject.toml. Check feature availability before relying on version-specific APIs or syntax.
  • Consult the upstream documentation and relevant implementations when designing integrations or when API contracts or compatibility are uncertain. Verify behavior against the supported versions, not only the latest release.

Agent Hosting

  • Treat performance as a critical requirement when changing hosting code. Avoid unnecessary or duplicate reads and writes to storage backends, checkpoint stores, response stores, and other persistence layers. Reuse data already available within the same request or execution when safe, without weakening durability, consistency, or isolation guarantees.

When working on agent hosting, consult these upstream SDK implementations as needed:

Validation and Evidence

  • Match validation to changed behavior and affected consumers, reusing existing tests and checks. In integration and sample checks, exercise real SDK interfaces and execution paths, mock external service boundaries as appropriate, and assert observable contract behavior.
  • When adding or changing published-package examples, validate the affected examples with the documented versions and extras in a clean environment, and state any unreleased API prerequisites.
  • Report checks actually performed, results, and material coverage limits; distinguish source inspection, local/mock checks, and live-service validation. Include the tested revision and relevant environment when needed to interpret or reproduce results.

Bug Fixes

  1. Add a focused regression test that reproduces the bug using the existing test suite and conventions.
  2. Run it and confirm it fails for the expected reason before changing the implementation.
  3. Make the smallest corrective change, then rerun the regression test and relevant existing tests until they pass.

Instruction Maintenance

  • When you discover outdated guidance in an applicable AGENTS.md, verify it against the current codebase and authoritative documentation, then update or remove the stale content as part of the task.

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.