generate_standard_function
Creates code from a standard function specification using task, signature, language, description, and test cases; optionally adds a matching unit test suite.
Instructions
Generate code for a standard function spec (Template 1) using coder expert model.
If generate_test_file is True, it will co-generate a matching unit test suite.
IMPORTANT: All parameters (such as 'task', 'description', 'constraints', 'edge_cases', etc.) MUST be provided in English. If the user's prompt or request is in Vietnamese or another language, the calling agent must automatically translate the text of these parameter values into English before invoking this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| context | No | ||
| language | Yes | ||
| signature | Yes | ||
| edge_cases | No | ||
| test_cases | Yes | ||
| constraints | No | ||
| description | Yes | ||
| integration_note | No | ||
| generate_test_file | No | ||
| dependencies_allowed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |