Skip to content

Commit d4e1aed

Browse files
committed
update message description
1 parent 7d3dc88 commit d4e1aed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/httpapi/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (a AgentStatus) Schema(r huma.Registry) *huma.Schema {
3939
type MessageUpdateBody struct {
4040
Id int `json:"id" doc:"Unique identifier for the message. This identifier also represents the order of the message in the conversation history."`
4141
Role st.ConversationRole `json:"role" doc:"Role of the message author"`
42-
Message string `json:"message" doc:"Message content"`
42+
Message string `json:"message" doc:"Message content. The message is formatted as it appears in the agent's terminal session, meaning it consists of lines of text with 80 characters per line."`
4343
Time time.Time `json:"time" doc:"Timestamp of the message"`
4444
}
4545

lib/httpapi/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (m MessageType) Schema(r huma.Registry) *huma.Schema {
2727
// Message represents a message
2828
type Message struct {
2929
Id int `json:"id" doc:"Unique identifier for the message. This identifier also represents the order of the message in the conversation history."`
30-
Content string `json:"content" example:"Hello world" doc:"Message content"`
30+
Content string `json:"content" example:"Hello world" doc:"Message content. The message is formatted as it appears in the agent's terminal session, meaning it consists of lines of text with 80 characters per line."`
3131
Role st.ConversationRole `json:"role" doc:"Role of the message author"`
3232
Time time.Time `json:"time" doc:"Timestamp of the message"`
3333
}

0 commit comments

Comments
 (0)