[Bug]: Cannot Read Annotation Value at Runtime When a Function Pointer is Passed to an Object Defined at the Module Level or Service Level #43855
Labels
Priority/Blocker
Priority/High
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
Description
In the
ballerinax/ai.agent
package, there's a requirement to read the annotation value of a function at runtime. However, when the agent is defined at the module level, it is not possible to retrieve the annotation value at runtime.Steps to Reproduce
The following stripped-down version of the code illustrates the problem:
The issue is also reproducible when the agent defined as a field in service class.
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: