mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-20 15:38:09 +02:00
Update Operator & Benchmark
This commit is contained in:
parent
fe3fca514a
commit
2d1d7ca219
8 changed files with 87 additions and 51 deletions
|
|
@ -622,21 +622,19 @@ class ActionNode:
|
|||
if self.schema:
|
||||
schema = self.schema
|
||||
|
||||
if mode == FillMode.CODE_FILL:
|
||||
|
||||
if mode == FillMode.CODE_FILL.value:
|
||||
result = await self.code_fill(context, function_name, timeout)
|
||||
self.instruct_content = self.create_class()(**result)
|
||||
return self
|
||||
|
||||
elif mode == FillMode.CONTEXT_FILL:
|
||||
"""
|
||||
使用xml_compile,但是这个版本没有办法实现system message 跟 temperature
|
||||
"""
|
||||
elif mode == FillMode.CONTEXT_FILL.value:
|
||||
context = self.xml_compile(context=self.context)
|
||||
result = await self.context_fill(context)
|
||||
self.instruct_content = self.create_class()(**result)
|
||||
return self
|
||||
|
||||
elif mode == FillMode.SINGLE_FILL:
|
||||
elif mode == FillMode.SINGLE_FILL.value:
|
||||
result = await self.single_fill(context)
|
||||
self.instruct_content = self.create_class()(**result)
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue