Refine AgentFeed UI and local workflow
This commit is contained in:
parent
3179f832fc
commit
ba9f5eb168
29 changed files with 2986 additions and 69 deletions
|
|
@ -10,6 +10,10 @@ class Artifact(models.Model):
|
|||
PDF = "pdf"
|
||||
BINARY = "binary"
|
||||
|
||||
AGENT = "agent"
|
||||
PERSON = "person"
|
||||
SYSTEM = "system"
|
||||
|
||||
KIND_CHOICES = [
|
||||
(HTML_FRAGMENT, "HTML fragment"),
|
||||
(HTML_FULL, "Full HTML"),
|
||||
|
|
@ -20,6 +24,12 @@ class Artifact(models.Model):
|
|||
(BINARY, "Binary"),
|
||||
]
|
||||
|
||||
SOURCE_TYPE_CHOICES = [
|
||||
(AGENT, "Agent"),
|
||||
(PERSON, "Person"),
|
||||
(SYSTEM, "System"),
|
||||
]
|
||||
|
||||
id = models.CharField(max_length=8, primary_key=True)
|
||||
persona = models.CharField(max_length=80, db_index=True)
|
||||
title = models.CharField(max_length=200)
|
||||
|
|
@ -31,6 +41,10 @@ class Artifact(models.Model):
|
|||
original_kind = models.CharField(max_length=20)
|
||||
tags = models.JSONField(default=list, blank=True)
|
||||
source_prompt = models.TextField(blank=True)
|
||||
source_type = models.CharField(max_length=20, choices=SOURCE_TYPE_CHOICES, default=AGENT)
|
||||
source_name = models.CharField(max_length=120, blank=True)
|
||||
source_id = models.CharField(max_length=120, blank=True)
|
||||
metadata = models.JSONField(default=dict, blank=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ["-created_at"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue