Skip to content

Commit 9c3b5ce

Browse files
authored
add api doc for codeact (stanfordnlp#8298)
1 parent 8020376 commit 9c3b5ce

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

docs/docs/api/modules/CodeAct.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# dspy.CodeAct
2+
3+
<!-- START_API_REF -->
4+
::: dspy.CodeAct
5+
handler: python
6+
options:
7+
members:
8+
- __call__
9+
- batch
10+
- deepcopy
11+
- dump_state
12+
- get_lm
13+
- inspect_history
14+
- load
15+
- load_state
16+
- map_named_predictors
17+
- named_parameters
18+
- named_predictors
19+
- named_sub_modules
20+
- parameters
21+
- predictors
22+
- reset_copy
23+
- save
24+
- set_lm
25+
show_source: true
26+
show_root_heading: true
27+
heading_level: 2
28+
docstring_style: google
29+
show_root_full_path: true
30+
show_object_full_path: false
31+
separate_signature: false
32+
inherited_members: true
33+
<!-- END_API_REF -->

docs/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ nav:
8686
- BestOfN: api/modules/BestOfN.md
8787
- ChainOfThought: api/modules/ChainOfThought.md
8888
- ChainOfThoughtWithHint: api/modules/ChainOfThoughtWithHint.md
89+
- CodeAct: api/modules/CodeAct.md
8990
- Module: api/modules/Module.md
9091
- MultiChainComparison: api/modules/MultiChainComparison.md
9192
- Parallel: api/modules/Parallel.md

dspy/predict/code_act.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def __init__(self, signature: Union[str, Type[Signature]], tools: list[Callable]
2828
max_iters (int): The maximum number of iterations to generate the answer.
2929
3030
Example:
31-
3231
```python
3332
from dspy.predict import CodeAct
3433
def factorial(n):

0 commit comments

Comments
 (0)