-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat(names): Add function span name and description rules
#618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "brief": "Function", | ||
| "operations": [ | ||
| { | ||
| "name": "Function execution", | ||
| "brief": "The execution of a function or a set of instructions that isn't covered by a more specific operation.", | ||
| "ops": ["function"], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The new generic Suggested FixTo prevent unintended inheritance, consider adding specific (even if empty) naming and description rules for each of the Prompt for AI AgentAlso affects:
|
||
| "templates": ["{{code.function.name}}"], | ||
| "examples": ["server_request", "handleSubmit"] | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "brief": "Function", | ||
| "operations": [ | ||
| { | ||
| "name": "Function execution", | ||
| "brief": "The execution of a function or a set of instructions that isn't covered by a more specific operation.", | ||
| "is_in_otel": false, | ||
| "ops": ["function"], | ||
| "templates": ["{{code.function.name}}", "Function execution"], | ||
| "examples": ["server_request", "handleSubmit", "Function execution"] | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The system lacks validation to ensure that
opsreferenced in name/description files (e.g.,function.json) actually exist, creating a risk of future inconsistencies if ops are modified.Severity: LOW
Suggested Fix
Enhance the test suite (
test/name.test.tsandtest/description.test.ts) to validate that all strings listed in theopsarray of name and description files correspond to an existing operation defined in one of themodel/op/*.jsoncategory files. This will enforce referential integrity and prevent future breakages.Prompt for AI Agent
Also affects:
model/name/function.json:8Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. will address in a follow-up!