Skip to content

Commit

Permalink
pre-commit run
Browse files Browse the repository at this point in the history
  • Loading branch information
zyzhang1130 committed Dec 11, 2024
1 parent e95b6bb commit f78ce6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/data_interpreter_mulit-agent/di_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def __init__(
max_iters=max_iters,
verbose=verbose,
)

# Overwrite the parser attribute with the custom format_instruction to reinforce the output adhere to json format.
self.parser = RegexTaggedContentParser(
format_instruction="""Respond with specific tags as outlined below in json format:
Expand Down
8 changes: 4 additions & 4 deletions examples/data_interpreter_mulit-agent/di_multiagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,15 @@ def init_agents() -> None:

# Overwrite the parser attribute with the custom format_instruction to reinforce the output adhere to json format.
solver_agent.parser = RegexTaggedContentParser(
format_instruction="""Respond with specific tags as outlined below in json format:
format_instruction="""Respond with specific tags as outlined below in json format:
<thought>{what you thought}</thought>
<function>{the function name you want to call}</function>
<{argument name}>{argument value}</{argument name}>
<{argument name}>{argument value}</{argument name}>
...""", # noqa
try_parse_json=True,
required_keys=["thought", "function"],
)
try_parse_json=True,
required_keys=["thought", "function"],
)

verifier_agent = VerifierAgent(
name="verifier",
Expand Down

0 comments on commit f78ce6b

Please sign in to comment.