✨ feat(sessions): add session message creation endpoint and update session details
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron-vite preview",
|
"start": "electron-vite preview",
|
||||||
"dev": "dotenv electron-vite dev",
|
"dev": "dotenv electron-vite dev",
|
||||||
|
"dev:main": "dotenv electron-vite dev --watch",
|
||||||
"debug": "electron-vite -- --inspect --sourcemap --remote-debugging-port=9222",
|
"debug": "electron-vite -- --inspect --sourcemap --remote-debugging-port=9222",
|
||||||
"build": "npm run typecheck && electron-vite build",
|
"build": "npm run typecheck && electron-vite build",
|
||||||
"build:check": "yarn lint && yarn test",
|
"build:check": "yarn lint && yarn test",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Content-Type: application/json
|
|||||||
}
|
}
|
||||||
|
|
||||||
### Get Session Details
|
### Get Session Details
|
||||||
GET {{host}}/v1/agents/{{agent_id}}/sessions/session_1757815281790_q4yxgdk74
|
GET {{host}}/v1/agents/{{agent_id}}/sessions/session_1757815260195_eldvompnv
|
||||||
Authorization: Bearer {{token}}
|
Authorization: Bearer {{token}}
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
@@ -38,3 +38,15 @@ Content-Type: application/json
|
|||||||
"name": "Code Review Session 1",
|
"name": "Code Review Session 1",
|
||||||
"user_goal": "Review the newly implemented feature for bugs and improvements"
|
"user_goal": "Review the newly implemented feature for bugs and improvements"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
### Create Session Message
|
||||||
|
POST {{host}}/v1/agents/{{agent_id}}/sessions/session_1757815260195_eldvompnv/messages
|
||||||
|
Authorization: Bearer {{token}}
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"role": "assistant",
|
||||||
|
"content": "Sure! Please provide the code or details of the feature you would like me to review.",
|
||||||
|
"parent_message_id": null
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user