mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
refine code: gloabl context to CONTEXT
This commit is contained in:
parent
bee5a973d0
commit
b0b6fbbba4
18 changed files with 85 additions and 85 deletions
|
|
@ -144,7 +144,7 @@ class ContextMixin(BaseModel):
|
|||
"""Role context: role context > context"""
|
||||
if self._context:
|
||||
return self._context
|
||||
return context
|
||||
return CONTEXT
|
||||
|
||||
@context.setter
|
||||
def context(self, context: Context):
|
||||
|
|
@ -153,4 +153,4 @@ class ContextMixin(BaseModel):
|
|||
|
||||
|
||||
# Global context, not in Env
|
||||
context = Context()
|
||||
CONTEXT = Context()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue