mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-08 07:12:38 +02:00
Merge branch 'main'
This commit is contained in:
commit
c18f384356
17 changed files with 373 additions and 20 deletions
|
|
@ -9,10 +9,10 @@
|
|||
```python
|
||||
from typing import Optional
|
||||
from abc import ABC
|
||||
from metagpt.llm import LLM # Large language model, similar to GPT
|
||||
n
|
||||
import metagpt.llm as LLM # 大语言模型,类似GPT
|
||||
|
||||
class Action(ABC):
|
||||
def __init__(self, name='', context=None, llm: LLM = LLM()):
|
||||
def __init__(self, name='', context=None, llm: llm=LLM.DEFAULT_LLM):
|
||||
self.name = name
|
||||
self.llm = llm
|
||||
self.context = context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue