Skip to content

Requirements Library: Implement generic Python tool requirements #1119

@akihikokuroda

Description

@akihikokuroda

Implement five generic Python tool requirements.

Requirements to Implement

  1. PythonCodeExtraction — code blocks are present and extractable
  2. PythonSyntaxValid — code is syntactically valid Python
  3. PythonExecutesWithoutError — code runs without exceptions
  4. OutputSizeLimit — captured output doesn't exceed limit
  5. ImportRestrictions — only whitelisted modules imported

Tests & Documentation

  • Add Google-style docstrings for each requirement class
  • Create test/stdlib/requirements/test_python_tools.py with positive and negative cases

Part of #1023

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions