query sendDevMessage (
$sessionID : String ! $message : String ! $prevMessageID : String !
) {
graphite {
sendDevMessage (
sessionID : $sessionIDmessage : $messageprevMessageID : $prevMessageID
) {
sessionID
messages {
id
role
message
createdAt
}
}
}
}
{
"data" : {
"graphite" : {
"sendDevMessage" : {
"messages" : [
{
"createdAt" : "2023-12-14T07:45:15.20353+00:00" ,
"id" : "string" ,
"message" : "string" ,
"role" : "string"
}
] ,
"sessionID" : "string"
}
}
}
}
Send a message to a developer session.
If prevMessageID is ""
, return all messages in the session.
If prevMessageID is not ""
, return all messages after prevMessageID.
Permissions needed
Only admins can send messages to developer sessions
Arguments
Session to send the message to
Only return messages after this message ID
Response
Type: MessageResponse!
Role of the message. Either “user” or “assistant”
Timestamp of when the message was sent
query sendDevMessage (
$sessionID : String ! $message : String ! $prevMessageID : String !
) {
graphite {
sendDevMessage (
sessionID : $sessionIDmessage : $messageprevMessageID : $prevMessageID
) {
sessionID
messages {
id
role
message
createdAt
}
}
}
}
{
"data" : {
"graphite" : {
"sendDevMessage" : {
"messages" : [
{
"createdAt" : "2023-12-14T07:45:15.20353+00:00" ,
"id" : "string" ,
"message" : "string" ,
"role" : "string"
}
] ,
"sessionID" : "string"
}
}
}
}