Discover the capabilities of Agent AutoBuild in my recent exploration with Autogen using app.py.


Setup Configuration

In my model setup configuration, defined in OAI_CONFIG_LIST, I’m leveraging the latest version of Autogen (pyautogen==0.2.2) with the following specifications:

[
    {
        "model": "gpt-4",
        "api_key": "NULL",
        "base_url": "http://192.168.68.114:1234/v1"
    }
]

Envisioning a groundbreaking initiative, I’ve embedded my vision within the instruction:

custom_task = """
I'm enthusiastic about launching an innovative project – a software academy tailored for children aged 7 to 16 with no prior coding experience. 
The focus is on AI and introductory Python programming to impart essential technical skills crucial for their future. 
To bring this vision to life, I'd like the language model's assistance in detailing the course agenda, developing a comprehensive curriculum, and establishing a step-by-step approach towards our goal. 
Together, we aim to create a compelling plan that not only educates but also inspires the next generation of tech enthusiasts. 
Let's embark on this exciting journey by shaping the foundation of our software academy."
"""

App.py Overview

The impressive AutoBuild functionality streamlines the automated creation of multi-agent systems designed for intricate tasks. Leveraging the Dolphin 2.2.1 Mistral 7B model through LM Studio, here is the entirety of my app.py:

import autogen

from autogen.agentchat.contrib.agent_builder import AgentBuilder

config_path = 'OAI_CONFIG_LIST'

default_llm_config = {
    'temperature': 0,
    'timeout': 600
}

builder = AgentBuilder(config_path=config_path, builder_model='gpt-4', agent_model='gpt-4')

custom_task = """
I'm enthusiastic about launching an innovative project – a software academy tailored for children aged 7 to 16 with no prior coding experience. 
The focus is on AI and introductory Python programming to impart essential technical skills crucial for their future. 
To bring this vision to life, I'd like the language model's assistance in detailing the course agenda, developing a comprehensive curriculum, and establishing a step-by-step approach towards our goal. 
Together, we aim to create a compelling plan that not only educates but also inspires the next generation of tech enthusiasts. 
Let's embark on this exciting journey by shaping the foundation of our software academy.
"""

agent_list, agent_configs = builder.build(custom_task + '\nOnly identify the agent name and separate them with comma.', default_llm_config)

def start_task(execution_task: str, agent_list: list, llm_config: dict):
    config_list = autogen.config_list_from_json(config_path, filter_dict={"model": ["gpt-4"]})

    group_chat = autogen.GroupChat(agents=agent_list, messages=[], max_round=12)
    manager = autogen.GroupChatManager(
        groupchat=group_chat, llm_config={"config_list": config_list, **llm_config}
    )
    agent_list[0].initiate_chat(manager, message=execution_task)

start_task(
    execution_task=custom_task,
    agent_list=agent_list,
    llm_config=default_llm_config
)

Output Showcase

Autogen seamlessly organizes the different agents as required:

autogen-autobuild-agents

Explore snippets from the discussion rounds:

1st Set

autogen-autobuild-1st-round-discussion

2nd Set

autogen-autobuild-2nd-round-discussion

3rd Set

autogen-autobuild-3rd-round-discussion

Final Set (specified that the maximum is 12)

autogen-autobuild-final-round-discussion


Agent AutoBuild Approach

Referring back to my previous post, I seamlessly incorporated the AutoBuild agent into addressing my previous question. Continuing with this approach, I’ve refined my task to seek insights into the intricacies of debating the statement, All art requires courage. Do you agree?. These are the modified python code:

autogen.AssistantAgent.DEFAULT_SYSTEM_MESSAGE = """You are a helpful AI assistant.
Define traits for the assigned position to complete the task.
You will assume this position and do not derail from the assigned task.
Reply in less than 100 words.
Reply "TERMINATE" in the end when everything is done.
"""

custom_task = """
I am preparing for my General Paper examination article on the topic 'Does all art require courage?'.
Craft an introduction, provide a structure for the subsequent content with examples to substantiate the points and end with a conclusion.
The article must be less than 1000 words, no infographics or programming is needed.
"""

agent_list, agent_configs = builder.build(
    custom_task + '\n[INST]Provide the agent name and nothing else, separete them with comma.[/INST]', 
    default_llm_config, 
    code_execution_config=False)

def start_task(execution_task: str, agent_list: list, llm_config: dict):
    config_list = autogen.config_list_from_json(config_path, filter_dict={"model": ["gpt-4"]})

    group_chat = autogen.GroupChat(agents=agent_list, messages=[], max_round=4, speaker_selection_method="round_robin")
    manager = autogen.GroupChatManager(
        groupchat=group_chat, llm_config={"config_list": config_list, **llm_config}
    )
    agent_list[0].initiate_chat(manager, message=execution_task)  

Upon executing this refined task, the output provides a unique perspective generated by the AutoBuild agents. This dynamic approach not only enhances the depth of the discussion but also introduces a fresh dimension to the exploration of diverse viewpoints. This is the output:

I. The Definition of Art and Courage
A. Understanding the nature of art and its role in society
Art, in its broadest sense, is a form of human expression that can take various forms such as visual arts,
performing arts, literature, and more. Throughout history, art has played an essential role in societies by 
reflecting cultural values, documenting historical events, and providing emotional catharsis for individuals.

B. Defining courage in the context of art creation
Courage in art creation refers to the willingness of artists to take risks, challenge societal norms, and confront 
difficult subjects through their work. This may involve exploring controversial themes, experimenting with 
unconventional techniques, or pushing boundaries within their chosen medium.

C. Exploring the relationship between art and risk-taking
Artists often face criticism and rejection for their work, which can be seen as a form of risk-taking. However, 
some artists choose to embrace these challenges and use them as fuel for their creative process. By taking risks 
and pushing boundaries, they are able to create unique and thought-provoking pieces that resonate with audiences on 
a deeper level.

II. Examples of Courageous Artists
A. Pablo Picasso's Guernica: A political statement amidst war
Picasso's famous painting, Guernica, is an example of courageous art creation. Created in response to the bombing of 
the Spanish town of Guernica during the Spanish Civil War, this powerful work serves as a stark reminder of the horrors 
of war and the suffering it causes.

B. Frida Kahlo's Self-Portraits: Expressing personal pain and identity
Frida Kahlo's self-portraits are another example of courageous art creation. These paintings often depict her 
physical and emotional struggles, including her chronic pain and tumultuous relationships. By sharing these intimate 
details of her life, Kahlo was able to connect with viewers on a deeply personal level and challenge societal 
expectations surrounding female identity.

C. Banksy's Street Art: Challenging societal norms through anonymous expression
Banksy, a renowned street artist known for his anonymous identity, creates thought-provoking pieces that critique 
consumerism, war, and other social issues. His courageous acts of graffiti art challenge conventional notions of what 
constitutes "art" while also sparking conversations about important topics.

III. The Role of Context in Courageous Art Creation
A. Historical events that have inspired courageous artworks
Throughout history, various events such as wars, revolutions, and social upheavals have inspired artists to create 
courageous works that reflect the times. For example, during World War II, many artists used their talents to raise 
awareness about the atrocities of war and promote peace.

B. Cultural influences on artistic bravery
Cultural factors can also play a significant role in shaping an artist's willingness to take risks and create 
courageous artworks. In some cultures, there may be greater acceptance and encouragement for artists who challenge 
societal norms, while in others, such acts may be met with resistance or even persecution.

C. Societal pressures and expectations shaping artists' choices
Artists often face pressure from society to conform to certain standards or expectations when creating their work. 
However, those who choose to embrace courageous art creation may find themselves at odds with these societal norms. 
By challenging these expectations, they are able to create unique and thought-provoking pieces that resonate with 
audiences on a deeper level.

IV. Conclusion: Does All Art Require Courage?
A. Summarizing the key points discussed in the article
This article has explored the concept of courageous art creation by examining various examples from throughout 
history. We have seen how artists like Picasso, Kahlo, and Banksy have used their talents to challenge societal norms 
and create meaningful works that resonate with audiences across generations.

B. Reflecting on the importance of courage in art creation
Courageous art creation plays an essential role in society by pushing boundaries, sparking conversations, and 
inspiring change. By embracing risk-taking and challenging conventional notions of what constitutes "art," these 
brave individuals help us to see the world through new eyes and encourage us to question our own beliefs and values.

C. Encouraging readers to consider their own perspectives on this topic
As we continue to explore the world of art, it is essential that we recognize and appreciate the courageous acts of 
those who dare to push boundaries and create meaningful works that resonate with audiences across generations. We 
encourage our readers to reflect on their own experiences with art and consider how they might approach creative 
expression in a more courageous manner. By embracing risk-taking and challenging conventional notions of what 
constitutes "art," we can all contribute to a richer, more diverse artistic landscape that inspires change and 
promotes understanding among people from all walks of life.

autogen-autobuild-on-does-all-art-requires-courage


Latest Mixtral 8x7B model

With the latest release of Mixtral 8x7B model from Mistral AI, I decided to it a try in LM Studio. However, there seems to be duplicate contents and incoherent output; I may have to tune my prompts further:

autogen-autobuild-mixtral-8x7b-model

Feel encouraged to delve into the in-depth article for a holistic perspective on the produced content, skillfully interconnecting insights from AutoBuild agents!