backend package
Submodules
backend.backend module
This file contains the backend logic for the streamlit app
- backend.backend.get_group_agents(config_file: str, base_path: str) dict[str, GroupAgent][source]
This method is used to get the group agents from the config file
- Parameters:
config_file – The path to the config file
base_path – The base path to the config file
- Returns:
The group agents in the config file
- backend.backend.get_handler(container) StreamlitDisplayHandler[source]
This method is used to get the handler to deal with streaming data
- Parameters:
container – The streamlit container
- Returns:
The streamlit display handler
- backend.backend.get_models(config_file: str, base_path: str) Dict[str, ModelMetaInfo][source]
This method is used to get the models from the config file
- Parameters:
config_file – The path to the config file
base_path – The base path to the config file
- Returns:
The models in the config file
- backend.backend.start_conversation(conversation_topic: str, model_meta_info: ModelMetaInfo) Conversation[source]
This method is used to start a conversation
- Parameters:
conversation_topic – The conversation topic
model_meta_info – The model meta information
- Returns:
The conversation object
- backend.backend.summmarize_conversation(conversation: Conversation, content_to_summarize: str, handler: StreamlitDisplayHandler) str[source]
This method is used to summarize a conversation
- Parameters:
conversation – The conversation object
content_to_summarize – The content to summarize
handler – The streamlit display handler
- Returns:
The summary onf the conversation
backend.metagpt module
- backend.metagpt.run_metagpt(setting: MetaGPTSetting, characters: list[GroupAgentCharacter], idea: str)[source]