Support dynamically defined agents created at runtime #523
schplitt
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
RFC
Summary
Allow Flue applications to define and run agents from runtime config instead of only from statically authored
'use agent'modules.Background & Motivation
Today, Flue v2 appears to be built around statically defined agent functions discovered from source files. That works well for code-first applications, but it makes it hard to build products where users can create and run agents directly from the frontend.
I would like to build a UI where a user can create an agent by choosing a model, provider, instructions, skills, tools, sandbox settings, and other options from a simple config form. That config would be stored in a database and then used to run the agent without a redeploy.
Right now it seems possible to make behavior dynamic inside a fixed agent function, but not to define truly dynamic agents as first class runtime agents. This makes product use cases harder, especially for multi-tenant apps, internal agent builders, and no-code or low-code workflows.
Goals
Example
A simplified example of the kind of API that would help:
Or even a lower level API such as:
Example use case from a frontend product:
This would make Flue much easier to use as the backend for user-defined agent products.
All reactions