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.
language
dspy.Code
1 parent b6115d4 commit d27c5afCopy full SHA for d27c5af
dspy/adapters/types/code.py
@@ -79,7 +79,7 @@ def serialize_model(self):
79
def description(cls) -> str:
80
return (
81
"Code represented in a string, specified in the `code` field. If this is an output field, the code "
82
- "field should follow the markdown code block format, e.g. \n```python\n{code}\n``` or \n```cpp\n{code}\n```"
+ f"field should follow the markdown code block format, e.g. \n```{cls.language.lower()}\n{{code}}\n```"
83
f"\nProgramming language: {cls.language}"
84
)
85
0 commit comments