We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535ef4c commit 2a4ed4fCopy full SHA for 2a4ed4f
examples/hackathon/agent_extensions.py
@@ -0,0 +1,13 @@
1
+from agents.agent import Agent
2
+from examples.hackathon.types import TestCase
3
+
4
5
+def add_method(cls):
6
+ def decorator(func):
7
+ setattr(cls, func.__name__, func)
8
+ return func
9
+ return decorator
10
11
+@add_method(Agent)
12
+def generate_tests(self, test_cases: list[TestCase]):
13
+ pass
0 commit comments