agentleFS
LangChainKnown publisherlangchain-ai/langchain-azure/libs/azure-cosmosdb/.github/copilot-instructions.md

langchain-azure / azure-cosmosdb

Copilot instructions147 starsChanged 3 months agoMITView on GitHub

This project provides Azure CosmosDB NoSQL integrations for both LangChain and LangGraph, including vector store, semantic cache, chat message history, query constructors, LangGraph checkpointer, and LangGraph cache — all with both synchronous and asynchronous implementations. For this project, we use poetry for packaging and dependency management, and pytest for testing. The following commands are useful: If there exists a .env file in the root directory, source it before running integration tests: set -a && source .env && set +a. The…

  • Reads credentials

The file

We split this copilot-instructions.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Very specific:

    If there exists a .env file in the root directory, source it before running integration tests: set -a && source .env && set +a.

    line 19
  2. Distinctive:

    Follow the below guidelines when interacting with the project files:

    line 77
  3. Distinctive:

    Follow the existing code style and conventions,

    line 80
  4. Distinctive:

    Always summarize your plan and ask for confirmation before moving forward,

    line 81
  5. Distinctive:

    Use Google-style docstrings (configured via ruff pydocstyle),

    line 82
  6. Distinctive:

    Ensure all public functions have type annotations, and,

    line 83
  7. Distinctive:

    Keep sync and async implementations in separate files.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

langchain-azure-cosmosdb

This project provides Azure CosmosDB NoSQL integrations for both LangChain and LangGraph, including vector store, semantic cache, chat message history, query constructors, LangGraph checkpointer, and LangGraph cache — all with both synchronous and asynchronous implementations.

Tooling

For this project, we use poetry for packaging and dependency management, and pytest for testing. The following commands are useful:

  • Creating the development environment: poetry install --with test,lint,typing
  • Running unit tests: make test
  • Running integration tests: make integration_tests
  • Running lint checks: make lint_package and make lint_tests
  • Formatting code: make format

If there exists a .env file in the root directory, source it before running integration tests: set -a && source .env && set +a.

Project Structure

The project has the general structure:

$ tree -L 4 -P '*.py' --prune
.
├── pyproject.toml
├── src
│   └── langchain_azure_cosmosdb
│       ├── __init__.py
│       ├── langchain
│       │   ├── __init__.py
│       │   ├── _cache.py
│       │   ├── _chat_history.py
│       │   ├── _query_constructor.py
│       │   ├── _utils.py
│       │   ├── _vectorstore.py
│       │   └── aio
│       │       ├── __init__.py
│       │       ├── _cache.py
│       │       ├── _chat_history.py
│       │       └── _vectorstore.py
│       └── langgraph
│           ├── __init__.py
│           ├── _cache.py
│           ├── _checkpoint_store.py
│           └── aio
│               ├── __init__.py
│               ├── _cache.py
│               └── _checkpoint_store.py
└── tests
    ├── __init__.py
    ├── unit_tests
    │   ├── __init__.py
    │   ├── test_imports.py
    │   ├── langchain
    │   │   └── (sync + async tests)
    │   └── langgraph
    │       └── (sync + async tests)
    └── integration_tests
        ├── __init__.py
        ├── langchain
        │   └── (sync + async tests)
        └── langgraph
            └── (sync + async tests)

Specifically, the project follows the standard Python src/ layout, with separate directories for LangChain integrations (langchain/) and LangGraph integrations (langgraph/). Asynchronous code lives under dedicated aio/ subdirectories.

General Coding Guidelines

Follow the below guidelines when interacting with the project files:

  • Be concise,
  • Follow the existing code style and conventions,
  • Always summarize your plan and ask for confirmation before moving forward,
  • Use Google-style docstrings (configured via ruff pydocstyle),
  • Ensure all public functions have type annotations, and,
  • Keep sync and async implementations in separate files.

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.