mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-06 08:01:31 +00:00
user message attachments progress
This commit is contained in:
parent
8e6728622a
commit
060f631f3e
8 changed files with 74 additions and 107 deletions
|
|
@ -136,7 +136,7 @@ class ApiMessage(ApiHandler):
|
|||
# Add user message to chat history so it's visible in the UI
|
||||
context.log.log(
|
||||
type="user",
|
||||
heading="User message",
|
||||
heading="",
|
||||
content=message,
|
||||
kvps={"attachments": attachment_filenames},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class Message(ApiHandler):
|
|||
# Log the message with message_id and attachments
|
||||
context.log.log(
|
||||
type="user",
|
||||
heading="User message",
|
||||
heading="",
|
||||
content=message,
|
||||
kvps={"attachments": attachment_filenames},
|
||||
id=message_id,
|
||||
|
|
|
|||
|
|
@ -874,7 +874,7 @@ class TaskScheduler:
|
|||
# Log the message with message_id and attachments
|
||||
context.log.log(
|
||||
type="user",
|
||||
heading="User message",
|
||||
heading="",
|
||||
content=task_prompt,
|
||||
kvps={"attachments": attachment_filenames},
|
||||
id=str(uuid.uuid4()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue