v1

latestOpenAPI 3.1.12026-07-17146175447.5 KB

Run shell command

Execute a shell command within the session context and return the AI's response.

post/session/{sessionID}/shell

Path parameters

sessionIDstring required

Session ID

Query parameters

directorystring

Request body

agentstring required
commandstring required

Response

Created message

idstring required
sessionIDstring required
role'assistant' required
parentIDstring required
modelIDstring required
providerIDstring required
modestring required
agentstring required
summaryboolean
costnumber required
{"stackTrail":"components:schemas:AssistantMessage:properties:structured","oasType":"schema","type":"unknown"}
variantstring
finishstring
stepCappedboolean