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

langchain-azure / azure-ai

AGENTS.md147 starsChanged 3 months agoMITView on GitHub

Apply these instructions to libs/azure-ai/ in addition to the repository instructions. When working on agent hosting, consult these upstream SDK implementations as needed:

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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 internal comments sparse.

    line 9
  3. Distinctive:

    Treat public APIs as downstream compatibility contracts.

    line 13
  4. Distinctive:

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

    line 14
  5. Distinctive:

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

    line 16
  6. Very specific:

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

    line 21
  7. Distinctive:

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

    line 26
  8. Distinctive:

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

    line 34
  9. Distinctive:

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

    line 35
  10. Distinctive:

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

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 internal comments sparse. Explain non-obvious rationale or constraints rather than narrating what the code does.

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

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

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.