Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Database Model to reflect domain #8070

Open
Swiftyos opened this issue Sep 17, 2024 — with Linear · 0 comments
Open

Update Database Model to reflect domain #8070

Swiftyos opened this issue Sep 17, 2024 — with Linear · 0 comments

Comments

Copy link
Contributor

Swiftyos commented Sep 17, 2024


Added to this project as I feel this is pretty urgent.

We currently have:

  • Agents (Graphs)
  • Agent Templates
  • Marketplace Agents
  • Ability to download / install an agent from the marketplace

These concepts on longer map to what we are doing with cloud system anymore.
These are the concepts I think we need to have:

  • Agents
  • Active Agent - An agent that will run when triggered, for example from a web hook or scheduler
  • Agent Execution - An agent actively running

These could look something like this (sudo code):

model Agent {. // Currently AgentGraph
  id        String    @default(uuid())
  version   Int       @default(1)
  ...
  author    User
  visability  Author | Group | Store   
}

model ActiveAgent {
  agent     Agent
  user      USer
  config    input_data ...
}

model AgentExecution { // Currently AgentGraphExecution
  no change from current
}

model MarketplaceAgents { // Currently Marketplace.Agents
   agent      Agent
   approvalStatus Enum
   ListingType    Enum [ FREE, AGENT, COMMISION] 
   ... other lisitng information
}

// This table lists the agents the user has added to there agents
// the availability type can be determined from the above data
model UserAvailableAgents {
   user    User
   agent   Agent
}   

Critically we are dropping the concept of templates and explicitly adds the concept of an agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant