chore: add ty + pre-commit hook and repeal even more ruff rules (#9504)
* auto fixes * auto fix pt2 and transitive deps and undefined var checking locals() * manual fixes (ignored or letta-code fixed) * fix circular import * remove all ignores, add FastAPI rules and Ruff rules * add ty and precommit * ruff stuff * ty check fixes * ty check fixes pt 2 * error on invalid
This commit is contained in:
@@ -101,7 +101,7 @@ async def test_send_llm_batch_request_async_mismatched_keys(anthropic_client, mo
|
||||
a ValueError is raised.
|
||||
"""
|
||||
mismatched_tools = {"agent-2": []} # Different agent ID than in the messages mapping.
|
||||
with pytest.raises(ValueError, match="Agent mappings for messages and tools must use the same agent_ids."):
|
||||
with pytest.raises(ValueError, match=r"Agent mappings for messages and tools must use the same agent_ids."):
|
||||
await anthropic_client.send_llm_batch_request_async(
|
||||
AgentType.memgpt_agent, mock_agent_messages, mismatched_tools, mock_agent_llm_config
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user