diff --git a/AGENTS.md b/AGENTS.md index acc721defb49..1188c9bd86d6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -139,6 +139,11 @@ npm i npm run test ``` +## Type Checking (`ty`) + +- Run the type checker with: `uvx ty check` +- In sandboxed environments, `uvx` may fail if it cannot access its cache directory (often under `~/.cache/uv`). If you see permission errors referencing `~/.cache/uv`, re-run the command outside the sandbox / with full permissions. + ## Code Review & PR Guidelines ### PR Requirements @@ -256,5 +261,4 @@ This section contains a list of questions, clarifications, or tasks that LLM age If there is something that doesn't make sense architecturally, devex-wise, or product-wise, please update this file and the humans will take care of it. Think of this as the reverse-task assignment - a place where you can communicate back to us. -- [ ] Add TypeScript testing guidelines - [ ] ... diff --git a/pyproject.toml b/pyproject.toml index 2c81277eb277..3edb03f2623b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -519,5 +519,4 @@ non-subscriptable = "ignore" unsupported-operator = "ignore" no-matching-overload = "ignore" possibly-missing-import = "ignore" -too-many-positional-arguments = "ignore" not-iterable = "ignore" \ No newline at end of file diff --git a/weave/prompt/prompt.py b/weave/prompt/prompt.py index f816443db058..a73c9033d7a2 100644 --- a/weave/prompt/prompt.py +++ b/weave/prompt/prompt.py @@ -266,7 +266,7 @@ def system_message(self) -> Message: @property def system_prompt(self) -> "Prompt": """Join all messages into a system prompt object.""" - return Prompt(self.as_str, role="system") + return EasyPrompt(self.as_str, role="system") @property def messages(self) -> list[Message]: