Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions metagpt/actions/action_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,9 @@ async def xml_fill(self, context: str, images: Optional[Union[str, list[str]]] =
async def fill(
self,
*,
req,
llm,
context=None,
req=None,
schema="json",
mode="auto",
strgy="simple",
Expand All @@ -609,7 +610,7 @@ async def fill(
):
"""Fill the node(s) with mode.

:param req: Everything we should know when filling node.
:param context: Everything we should know when filling node.
:param llm: Large Language Model with pre-defined system message.
:param schema: json/markdown, determine example and output format.
- raw: free form text
Expand All @@ -628,6 +629,10 @@ async def fill(
:return: self
"""
self.set_llm(llm)
if not req and context:
req = context
if not context and req:
context = req
self.set_context(req)
if self.schema:
schema = self.schema
Expand Down
Loading