Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Repository Guide

This repository is mostly generated code.

Before editing or approving a PR, check the top of the file:

```python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
```

If that marker is present, do not hand-edit the file. Changes should be made in the upstream source or generator inputs, then regenerated.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some .genignore files may still contain this header. We should either remove the header from all .genignore files or adjust the workflow so that .genignore should be checked first: if a file is in .genignore but has the header, it can still be edited.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


## What We Own

The main hand-maintained surface is listed in `.genignore`.

At the repo root, that currently includes files such as:

- `pyproject.toml`
- `examples/*`
- `utils/*`
- `src/mistralai/extra/*`
- `pylintrc`
- `scripts/prepare_readme.py`

There are also package-specific ownership files:

- `packages/gcp/.genignore`
- `packages/azure/.genignore`

If a file is not listed in the relevant `.genignore` and it has the generated header, assume it should not be edited directly.

## PR Review Rule Of Thumb

- Prefer PRs that change hand-owned files listed in `.genignore`.
- Be skeptical of direct edits to generated SDK files under `src/`, `docs/`, or `packages/*/src/`.
- If a generated file changed, look for the corresponding source/config change that explains the regeneration.
1 change: 1 addition & 0 deletions CLAUDE.md
2 changes: 0 additions & 2 deletions packages/azure/src/mistralai/azure/client/sdk.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from .basesdk import BaseSDK
from .httpclient import AsyncHttpClient, ClientOwner, HttpClient, close_clients
from .sdkconfiguration import SDKConfiguration
Expand Down
2 changes: 0 additions & 2 deletions packages/gcp/src/mistralai/gcp/client/sdk.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from .basesdk import BaseSDK
from .httpclient import AsyncHttpClient, ClientOwner, HttpClient, close_clients
from .sdkconfiguration import SDKConfiguration
Expand Down
Loading