Standardize Session Name Attribute (#5085)

This commit is contained in:
Will Pfleger
2025-10-17 17:05:41 -04:00
committed by GitHub
parent 2df2f783c9
commit b8c3508178
29 changed files with 1193 additions and 237 deletions
+62 -59
View File
@@ -1886,57 +1886,6 @@
]
}
},
"/sessions/{session_id}/description": {
"put": {
"tags": [
"Session Management"
],
"operationId": "update_session_description",
"parameters": [
{
"name": "session_id",
"in": "path",
"description": "Unique identifier for the session",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSessionDescriptionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Session description updated successfully"
},
"400": {
"description": "Bad request - Description too long (max 200 characters)"
},
"401": {
"description": "Unauthorized - Invalid or missing API key"
},
"404": {
"description": "Session not found"
},
"500": {
"description": "Internal server error"
}
},
"security": [
{
"api_key": []
}
]
}
},
"/sessions/{session_id}/export": {
"get": {
"tags": [
@@ -1982,6 +1931,57 @@
]
}
},
"/sessions/{session_id}/name": {
"put": {
"tags": [
"Session Management"
],
"operationId": "update_session_name",
"parameters": [
{
"name": "session_id",
"in": "path",
"description": "Unique identifier for the session",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSessionNameRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Session name updated successfully"
},
"400": {
"description": "Bad request - Name too long (max 200 characters)"
},
"401": {
"description": "Unauthorized - Invalid or missing API key"
},
"404": {
"description": "Session not found"
},
"500": {
"description": "Internal server error"
}
},
"security": [
{
"api_key": []
}
]
}
},
"/sessions/{session_id}/user_recipe_values": {
"put": {
"tags": [
@@ -4077,7 +4077,7 @@
"required": [
"id",
"working_dir",
"description",
"name",
"created_at",
"updated_at",
"extension_data",
@@ -4111,9 +4111,6 @@
"type": "string",
"format": "date-time"
},
"description": {
"type": "string"
},
"extension_data": {
"$ref": "#/components/schemas/ExtensionData"
},
@@ -4129,6 +4126,9 @@
"type": "integer",
"minimum": 0
},
"name": {
"type": "string"
},
"output_tokens": {
"type": "integer",
"format": "int32",
@@ -4162,6 +4162,9 @@
},
"nullable": true
},
"user_set_name": {
"type": "boolean"
},
"working_dir": {
"type": "string"
}
@@ -4685,15 +4688,15 @@
}
}
},
"UpdateSessionDescriptionRequest": {
"UpdateSessionNameRequest": {
"type": "object",
"required": [
"description"
"name"
],
"properties": {
"description": {
"name": {
"type": "string",
"description": "Updated description (name) for the session (max 200 characters)"
"description": "Updated name for the session (max 200 characters)"
}
}
},