DSPy: The framework for programming—not prompting—language models
Python
add api doc for codeact (#8298)
TomuHirata9c3b5ce332c7
diff --git a/docs/docs/api/modules/CodeAct.md b/docs/docs/api/modules/CodeAct.mdnew file mode 100644index 000000000..7a600f807--- /dev/null+++ b/docs/docs/api/modules/CodeAct.md@@ -0,0 +1,33 @@+# dspy.CodeAct++<!-- START_API_REF -->+::: dspy.CodeAct+ handler: python+ options:+ members:+ - __call__+ - batch+ - deepcopy+ - dump_state+ - get_lm+ - inspect_history+ - load+ - load_state+ - map_named_predictors+ - named_parameters+ - named_predictors+ - named_sub_modules+ - parameters+ - predictors+ - reset_copy+ - save+ - set_lm+ show_source: true+ show_root_heading: true+ heading_level: 2+ docstring_style: google+ show_root_full_path: true+ show_object_full_path: false+ separate_signature: false+ inherited_members: true+<!-- END_API_REF -->diff --git a/docs/mkdocs.yml b/docs/mkdocs.ymlindex 1073563f4..8c3585cf2 100644--- a/docs/mkdocs.yml+++ b/docs/mkdocs.yml@@ -86,6 +86,7 @@ nav:- BestOfN: api/modules/BestOfN.md- ChainOfThought: api/modules/ChainOfThought.md- ChainOfThoughtWithHint: api/modules/ChainOfThoughtWithHint.md+ - CodeAct: api/modules/CodeAct.md- Module: api/modules/Module.md- MultiChainComparison: api/modules/MultiChainComparison.md- Parallel: api/modules/Parallel.mddiff --git a/dspy/predict/code_act.py b/dspy/predict/code_act.pyindex 01b246916..2c3e7d180 100644--- a/dspy/predict/code_act.py+++ b/dspy/predict/code_act.py@@ -28,7 +28,6 @@ class CodeAct(ReAct, ProgramOfThought):max_iters (int): The maximum number of iterations to generate the answer.Example:-```pythonfrom dspy.predict import CodeActdef factorial(n):