Thinking about a new programming paradigm. It is a result of thinking about how to…
- User
Thinking about a new programming paradigm. It is a result of thinking about how to approach LLM workfows, but I think it can have broader use. Not considering LLMs now, the principles are: The main components are:
- Agencies - they are static, they have no variable state, they are configured at the program startup.
- Agents - They have runtime mutating state, they can send messages, - they send messages to another agent or to an agency. Agencies can be viewed as blueprints for agents. When an agency receives a message, it creates a new agent (of the agency type) and forwards the message to it.
Basically, it can be seen as an analogy of agents/agencies that communicate via emails. When uou send an email to an agency, it assigns one of it's agent (ok, create it) to handle the email. Agent has than it's own state, it can do actions based on it's programming and send emails to known addresses. What is important to realize, the resulting workflow can be easily made sequential - if the agents cannot send multiple mesages in parallel. When you stick to the rule - once an agent sends a message then it waits for a message or terminates, the resulting control flow is like of a sequential procedural program with an extension - you can forward the message, similar to when you reduce the assembly sequence:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.