Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add human tool [WIP]

Tomas Valenta8fcbbb68fcd5
diff --git a/api-service/.openapi-generator/FILES b/api-service/.openapi-generator/FILES
index 579a5596c..f8f764950 100644
--- a/api-service/.openapi-generator/FILES
+++ b/api-service/.openapi-generator/FILES
@@ -22,6 +22,7 @@ playground_client/docs/ProcessResponse.md
playground_client/docs/ReadFilesystemFileResponse.md
playground_client/docs/SessionResponse.md
playground_client/docs/StartProcessParams.md
+playground_client/docs/ToolsHumanResponse.md
playground_client/docs/WriteFilesystemFileRequest.md
playground_client/docs/WriteProcessStdinRequest.md
playground_client/exceptions.py
@@ -44,6 +45,7 @@ playground_client/models/process_response.py
playground_client/models/read_filesystem_file_response.py
playground_client/models/session_response.py
playground_client/models/start_process_params.py
+playground_client/models/tools_human_response.py
playground_client/models/write_filesystem_file_request.py
playground_client/models/write_process_stdin_request.py
playground_client/rest.py
@@ -67,6 +69,7 @@ playground_client/test/test_process_response.py
playground_client/test/test_read_filesystem_file_response.py
playground_client/test/test_session_response.py
playground_client/test/test_start_process_params.py
+playground_client/test/test_tools_human_response.py
playground_client/test/test_write_filesystem_file_request.py
playground_client/test/test_write_process_stdin_request.py
playground_client_README.md
diff --git a/api-service/app.py b/api-service/app.py
index e279f435a..7a4925b64 100644
--- a/api-service/app.py
+++ b/api-service/app.py
@@ -65,6 +65,9 @@ def generate():
playground_tools=playground_tools,
database=db,
run_id=run_id,
+ project_id=project_id,
+ route_id=route_id,
+ playground=playground,
)
# Generate the code
diff --git a/api-service/codegen/callback_handler.py b/api-service/codegen/callback_handler.py
index 8f19de955..7b269dfd8 100644
--- a/api-service/codegen/callback_handler.py
+++ b/api-service/codegen/callback_handler.py
@@ -1,4 +1,3 @@
-import os
from typing import Dict, Any, List, Union, Optional
import datetime
import uuid
diff --git a/api-service/codegen/codegen.py b/api-service/codegen/codegen.py
index 3c1e9b988..feb640fdc 100644
--- a/api-service/codegen/codegen.py
+++ b/api-service/codegen/codegen.py
@@ -13,6 +13,7 @@ from langchain.callbacks.base import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.tools import BaseTool
+from session.playground import NodeJSPlayground
from session.env import EnvVar
from database import Database
from codegen.agent import CodegenAgent, CodegenAgentExecutor
@@ -84,7 +85,10 @@ class Codegen(BaseModel):
cls,
playground_tools: List[BaseTool],
database: Database,
- run_id: str
+ run_id: str,
+ project_id,
+ route_id: str,
+ playground: NodeJSPlayground,
):
callback_manager = CallbackManager(
[
@@ -102,7 +106,15 @@ class Codegen(BaseModel):
# InvalidTool(),
# OutputFinalCode(),
*playground_tools,
- AskHuman(callback_manager=callback_manager, run_id=run_id),
+ AskHuman(
+ callback_manager=callback_manager,
+ run_id=run_id,
+ project_id=project_id,
+ route_id=route_id,
+ playground=playground,
+ name="AskHuman",
+ description="You can ask a human for guidance when you think you got stuck or you are not sure what to do next. The input should be a question for the human.",
+ ),
# WriteCodeToFile(callback_manager=callback_manager),
# DeployCode(callback_manager=callback_manager),
]
diff --git a/api-service/codegen/tools/human/ask.py b/api-service/codegen/tools/human/ask.py
index a2442ca43..0fb68cb1a 100644
--- a/api-service/codegen/tools/human/ask.py
+++ b/api-service/codegen/tools/human/ask.py
@@ -1,7 +1,10 @@
from time import sleep
-from langchain.callbacks.base import CallbackManager
+from langchain.callbacks.base import CallbackManager
from langchain.tools import BaseTool
+from session.playground.base import Playground
+
+from session.session import Session
# {
# "id": "52b2b157-132f-47c6-be1e-3c203034fdfb",
@@ -15,24 +18,28 @@ from langchain.tools import BaseTool
class AskHuman(BaseTool):
+ run_id: str
+ route_id: str
+ project_id: str
+ playground: Playground
name = "AskHuman"
description = "You can ask a human for guidance when you think you got stuck or you are not sure what to do next. The input should be a question for the human."
- def __init__(self, callback_manager: CallbackManager, run_id: str):
- super().__init__(name=self.name, description=self.description, callback_manager=callback_manager)
- self.run_id = run_id
-
def _run(self, question: str) -> str:
# TODO: Save the question to DB (in logs? - should we still use callback manager)
+ print("Asking about")
+ response = self.playground.api.wait_for_human_response(
+ run_id=self.run_id,
+ project_id=self.project_id,
+ route_id=self.route_id,
+ )
-
+ return response.response
# TODO: Wait until the question is answered -> timeout?
# TODO: Parse and return the correct output from the logs
-
-
# print(question)
# sleep(60)
# with open(
diff --git a/api-service/database/database.py b/api-service/database/database.py
index 6b9ec149a..6c84943ee 100644
--- a/api-service/database/database.py
+++ b/api-service/database/database.py
@@ -28,6 +28,7 @@ class Database:
).execute()
def push_logs(self, run_id: str, logs: List[Dict[str, str]]) -> None:
+ print("LOGS")
if len(logs) > 0:
self.client.table(deploymentsTable).update(
{
@@ -36,6 +37,7 @@ class Database:
).eq("id", run_id).execute()
def push_raw_logs(self, run_id: str, logs_raw: str) -> None:
+ print("RAW LOGS")
if logs_raw:
self.client.table(deploymentsTable).update(
{
diff --git a/api-service/playground/package.json b/api-service/playground/package.json
index bfd6d209b..716c1ea62 100644
--- a/api-service/playground/package.json
+++ b/api-service/playground/package.json
@@ -6,6 +6,7 @@
"@aws-sdk/client-api-gateway": "^3.293.0",
"@aws-sdk/client-lambda": "^3.293.0",
"@devbookhq/sdk": "^2.6.74",
+ "@supabase/supabase-js": "^2.12.0",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"intermock": "^0.2.5",
@@ -30,4 +31,4 @@
"build": "./scripts/build.js",
"start": "node lib/server.js"
}
-}
\ No newline at end of file
+}
diff --git a/api-service/playground/src/data/createDeferredPromise.ts b/api-service/playground/src/data/createDeferredPromise.ts
new file mode 100644
index 000000000..724cc9eb0
--- /dev/null
+++ b/api-service/playground/src/data/createDeferredPromise.ts
@@ -0,0 +1,14 @@
+export function createDeferredPromise<T = void>() {
+ let resolve: ((value: T) => void)
+ let reject: ((reason?: any) => void)
+ const promise = new Promise<T>((res, rej) => {
+ resolve = res
+ reject = rej
+ })
+
+ return {
+ resolve: resolve!,
+ reject: reject!,
+ promise,
+ }
+}
diff --git a/api-service/playground/src/data/humanResponse.ts b/api-service/playground/src/data/humanResponse.ts
new file mode 100644
index 000000000..d8ccd23f7
--- /dev/null
+++ b/api-service/playground/src/data/humanResponse.ts
@@ -0,0 +1,91 @@
+import { RealtimeChannel, createClient } from '@supabase/supabase-js'
+
+import { Database } from './supabase'
+import { createDeferredPromise } from './createDeferredPromise'
+
+import * as dotenv from 'dotenv'
+
+dotenv.config({
+ path: '../../.env',
+})
+
+const client = createClient<Database>(process.env.SUPABASE_URL!, process.env.SUPABASE_SECRET_KEY!)
+
+
+export const projectsTable = 'projects'
+export const deploymentsTable = 'deployments'
+export const routesTable = 'routes'
+
+
+// # {
+// # "id": "52b2b157-132f-47c6-be1e-3c203034fdfb",
+// # "name": "InstallNPMDependencies",
+// # "type": "tool",
+// # "input": "\nexpress\n",
+// # "output": "All dependencies installed",
+// # "start_at": "2023-03-19 23:49:23.079327",
+// # "finish_at": "2023-03-19 23:49:26.002323"
+// # },
+
+function checkForResponse(payloadList: any[]): string | null {
+ console.log('payload', payloadList)
+ const payload = payloadList.length > 0 ? payloadList[payloadList.length - 1] : undefined
+
+ if (!payload) {
+ return null
+ }
+
+ if (payload.type === 'tool' && payload.name === 'AskHuman' && payload.output) {
+ return payload.output
+ }
+ return null
+}
+
+export async function waitForHumanResponse({ runID }: { runID: string }) {
+ const { resolve, promise } = createDeferredPromise<string>()
+
+ let updateSub: RealtimeChannel | undefined
+
+ try {
+ setTimeout(() => {
+ resolve('Timeout')
+ }, 3600000)
+
+
+ console.log('runID', runID)
+ updateSub = client.channel('any-server')
+ .on('postgres_changes',
+ {
+ event: 'UPDATE',
+ schema: 'public',
+ table: deploymentsTable,
+ filter: `id=eq.${runID}`,
+ }, payload => {
+ const response = checkForResponse(payload.new.logs as any)
+ console.log('updat')
+ if (response) {
+ resolve(response)
+ }
+ })
+ .subscribe()
+
+
+ const deployment = await client
+ .from(deploymentsTable)
+ .select('*')
+ .eq('id', runID)
+ .single()
+
+ const response = checkForResponse(deployment?.data?.logs as any)
+
+ if (response) {
+ resolve(response)
+ }
+ } catch (err) {
+ resolve('Error retrieving human response')
+ } finally {
+ }
+ const response = await promise
+ updateSub?.unsubscribe()
+ return response
+}
diff --git a/api-service/playground/src/data/supabase.ts b/api-service/playground/src/data/supabase.ts
new file mode 100644
index 000000000..f28cb5146
--- /dev/null
+++ b/api-service/playground/src/data/supabase.ts
@@ -0,0 +1,118 @@
+export type Json =
+ | string
+ | number
+ | boolean
+ | null
+ | { [key: string]: Json }
+ | Json[]
+
+export interface Database {
+ public: {
+ Tables: {
+ deployments: {
+ Row: {
+ created_at: string
+ id: string
+ logs: Json[] | null
+ logs_raw: string | null
+ project_id: string
+ route_id: string
+ state: Database["public"]["Enums"]["deployment_state"] | null
+ url: string | null
+ }
+ Insert: {
+ created_at?: string
+ id?: string
+ logs?: Json[] | null
+ logs_raw?: string | null
+ project_id: string
+ route_id: string
+ state?: Database["public"]["Enums"]["deployment_state"] | null
+ url?: string | null
+ }
+ Update: {
+ created_at?: string
+ id?: string
+ logs?: Json[] | null
+ logs_raw?: string | null
+ project_id?: string
+ route_id?: string
+ state?: Database["public"]["Enums"]["deployment_state"] | null
+ url?: string | null
+ }
+ }
+ projects: {
+ Row: {
+ created_at: string
+ data: Json | null
+ id: string
+ name: string
+ team_id: string
+ }
+ Insert: {
+ created_at?: string
+ data?: Json | null
+ id?: string
+ name?: string
+ team_id: string
+ }
+ Update: {
+ created_at?: string
+ data?: Json | null
+ id?: string
+ name?: string
+ team_id?: string
+ }
+ }
+ teams: {
+ Row: {
+ created_at: string
+ id: string
+ is_default: boolean | null
+ name: string
+ }
+ Insert: {
+ created_at?: string
+ id?: string
+ is_default?: boolean | null
+ name?: string
+ }
+ Update: {
+ created_at?: string
+ id?: string
+ is_default?: boolean | null
+ name?: string
+ }
+ }
+ users_teams: {
+ Row: {
+ created_at: string
+ team_id: string
+ user_id: string
+ }
+ Insert: {
+ created_at?: string
+ team_id: string
+ user_id: string
+ }
+ Update: {
+ created_at?: string
+ team_id?: string
+ user_id?: string
+ }
+ }
+ }
+ Views: {
+ [_ in never]: never
+ }
+ Functions: {
+ [_ in never]: never
+ }
+ Enums: {
+ deployment_state: "generating" | "deploying" | "finished" | "error"
+ }
+ CompositeTypes: {
+ [_ in never]: never
+ }
+ }
+}
diff --git a/api-service/playground/src/data/toolsController.ts b/api-service/playground/src/data/toolsController.ts
new file mode 100644
index 000000000..12ba1a850
--- /dev/null
+++ b/api-service/playground/src/data/toolsController.ts
@@ -0,0 +1,29 @@
+import {
+ Controller,
+ Get,
+ Route,
+ Query,
+} from 'tsoa'
+import { waitForHumanResponse } from './humanResponse'
+
+interface ToolsHumanResponse {
+ response: string
+}
+
+@Route('tools')
+export class ToolsController extends Controller {
+ @Get()
+ public async waitForHumanResponse(
+ @Query() runID: string,
+ @Query() projectID: string,
+ @Query() routeID: string,
+ ): Promise<ToolsHumanResponse> {
+ const response = await waitForHumanResponse({
+ runID,
+ })
+
+ return {
+ response,
+ }
+ }
+}
diff --git a/api-service/playground/src/generated/routes.ts b/api-service/playground/src/generated/routes.ts
index 67766fd15..5f3ec4c22 100644
--- a/api-service/playground/src/generated/routes.ts
+++ b/api-service/playground/src/generated/routes.ts
@@ -5,6 +5,8 @@ import { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute, H
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { MockController } from './../data/mockController';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+import { ToolsController } from './../data/toolsController';
+// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { DeploymentsController } from './../deployments/deploymentsController';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { FilesystemController } from './../sessions/filesystemController';
@@ -34,6 +36,14 @@ const models: TsoaRoute.Models = {
"additionalProperties": false,
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+ "ToolsHumanResponse": {
+ "dataType": "refObject",
+ "properties": {
+ "response": {"dataType":"string","required":true},
+ },
+ "additionalProperties": false,
+ },
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"DeploymentResponse": {
"dataType": "refObject",
"properties": {
@@ -183,6 +193,33 @@ export function RegisterRoutes(app: Router) {
}
});
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+ app.get('/tools',
+ ...(fetchMiddlewares<RequestHandler>(ToolsController)),
+ ...(fetchMiddlewares<RequestHandler>(ToolsController.prototype.waitForHumanResponse)),
+
+ function ToolsController_waitForHumanResponse(request: any, response: any, next: any) {
+ const args = {
+ runID: {"in":"query","name":"runID","required":true,"dataType":"string"},
+ projectID: {"in":"query","name":"projectID","required":true,"dataType":"string"},
+ routeID: {"in":"query","name":"routeID","required":true,"dataType":"string"},
+ };
+
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+
+ let validatedArgs: any[] = [];
+ try {
+ validatedArgs = getValidatedArgs(args, request, response);
+
+ const controller = new ToolsController();
+
+
+ const promise = controller.waitForHumanResponse.apply(controller, validatedArgs as any);
+ promiseHandler(controller, promise, response, undefined, next);
+ } catch (err) {
+ return next(err);
+ }
+ });
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.put('/deployments/:projectID',
...(fetchMiddlewares<RequestHandler>(DeploymentsController)),
...(fetchMiddlewares<RequestHandler>(DeploymentsController.prototype.createDeployment)),
diff --git a/api-service/playground/swagger.json b/api-service/playground/swagger.json
index 6676f395d..c051259d4 100644
--- a/api-service/playground/swagger.json
+++ b/api-service/playground/swagger.json
@@ -34,6 +34,18 @@
"type": "object",
"additionalProperties": false
},
+ "ToolsHumanResponse": {
+ "properties": {
+ "response": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "response"
+ ],
+ "type": "object",
+ "additionalProperties": false
+ },
"DeploymentResponse": {
"properties": {
"url": {
@@ -300,6 +312,50 @@
}
}
},
+ "/tools": {
+ "get": {
+ "operationId": "WaitForHumanResponse",
+ "responses": {
+ "200": {
+ "description": "Ok",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ToolsHumanResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "runID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "projectID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "routeID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
"/deployments/{projectID}": {
"put": {
"operationId": "CreateDeployment",
diff --git a/api-service/playground/yarn.lock b/api-service/playground/yarn.lock
index 01b82af76..692acdb8e 100644
--- a/api-service/playground/yarn.lock
+++ b/api-service/playground/yarn.lock
@@ -888,6 +888,55 @@
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.11.tgz#9be796d93ae27b636da32d960899a4912bca27a1"
integrity sha512-N9vXqLP3eRL8BqSy8yn4Y98cZI2pZ8fyuHx6lKjiG2WABpT2l01TXdzq5Ma2ZUBzfB7tx5dXVhge8X9u0S70ZQ==
+"@supabase/functions-js@^2.1.0":
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/@supabase/functions-js/-/functions-js-2.1.0.tgz#60e304c6f56b2a56f051277e00b0c9eb5453cfcb"
+ integrity sha512-vRziB+AqRXRaGHjEFHwBo0kuNDTuAxI7VUeqU24Fe86ISoD8YEQm0dGdpleJEcqgDGWaO6pxT1tfj1BRY5PwMg==
+ dependencies:
+ cross-fetch "^3.1.5"
+
+"@supabase/gotrue-js@^2.12.0":
+ version "2.15.0"
+ resolved "https://registry.yarnpkg.com/@supabase/gotrue-js/-/gotrue-js-2.15.0.tgz#3ed2aaac35fa62d2b4d08948abb24d2152171cf4"
+ integrity sha512-cu3JRGEK03Aa+yWf7YPyDibVYoMYM8apc5HwsnjnVgLtFuIqaVKFrlIBWgzBOSabxaP//6i/pd39oXo9uDH3Ew==
+ dependencies:
+ cross-fetch "^3.1.5"
+
+"@supabase/postgrest-js@^1.1.1":
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/@supabase/postgrest-js/-/postgrest-js-1.4.1.tgz#08edf17543fc2d807ae74fa66882f42d7a2b8e66"
+ integrity sha512-aruqwV/aTggkM7OVv2JinCeXmRMKHJCZpkuS1nuoa0NgLw7g3NyILSyWOKYTBJ/PxE/zXtWsBhdxFzaaNz5uxg==
+ dependencies:
+ cross-fetch "^3.1.5"
+
+"@supabase/realtime-js@^2.7.1":
+ version "2.7.1"
+ resolved "https://registry.yarnpkg.com/@supabase/realtime-js/-/realtime-js-2.7.1.tgz#a39aaf5277a83d1454054291fee127bf665f68f1"
+ integrity sha512-WC0yPArBF/wPXwxKWTrRSMWWnFQCbhhUsX0u42x4OqUdDJtow6rzvDIZHWFZLh85UUBYIQ2++AabSNgzd3ubQg==
+ dependencies:
+ "@types/phoenix" "^1.5.4"
+ "@types/websocket" "^1.0.3"
+ websocket "^1.0.34"
+
+"@supabase/storage-js@^2.3.1":
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/@supabase/storage-js/-/storage-js-2.3.1.tgz#fb557c416d2eeaa2422b2c961c7f08133234d755"
+ integrity sha512-BaPIvyvjuZW1V0CnfGKUZyzpBUXnsh0XD8eqTOYd+MdiGPmIPI0vtwnT4fAoK8mipp1vpcN62EVQaqeUnWXPtQ==
+ dependencies:
+ cross-fetch "^3.1.5"
+
+"@supabase/supabase-js@^2.12.0":
+ version "2.12.0"
+ resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-2.12.0.tgz#71215e71495c25e507ad1d38fb310a528052b8e5"
+ integrity sha512-tHV4KqlPHuPt4uPu+nYwQTEp+mU7Qc0h42EyRW7rsAGGo8bmKIOGnZjyDDc5lxg0CW7OF5R5oMQWmtuuXZh00Q==
+ dependencies:
+ "@supabase/functions-js" "^2.1.0"
+ "@supabase/gotrue-js" "^2.12.0"
+ "@supabase/postgrest-js" "^1.1.1"
+ "@supabase/realtime-js" "^2.7.1"
+ "@supabase/storage-js" "^2.3.1"
+ cross-fetch "^3.1.5"
+
"@tsoa/cli@^5.1.1":
version "5.1.1"
resolved "https://registry.yarnpkg.com/@tsoa/cli/-/cli-5.1.1.tgz#2111fef7ae5d69d52f645bd33e4da91bf5d2428c"
@@ -973,6 +1022,11 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.0.tgz#286a65e3fdffd691e170541e6ecb0410b16a38be"
integrity sha512-z6nr0TTEOBGkzLGmbypWOGnpSpSIBorEhC4L+4HeQ2iezKCi4f77kyslRwvHeNitymGQ+oFyIWGP96l/DPSV9w==
+"@types/phoenix@^1.5.4":
+ version "1.5.5"
+ resolved "https://registry.yarnpkg.com/@types/phoenix/-/phoenix-1.5.5.tgz#2276102b16203ca16a5ec3f2e20bcc2819a8a520"
+ integrity sha512-1eWWT19k0L4ZiTvdXjAvJ9KvW0B8SdiVftQmFPJGTEx78Q4PCSIQDpz+EfkFVR1N4U9gREjlW4JXL8YCIlY0bw==
+
"@types/qs@*":
version "6.9.7"
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb"
@@ -991,6 +1045,13 @@
"@types/mime" "*"
"@types/node" "*"
+"@types/websocket@^1.0.3":
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.5.tgz#3fb80ed8e07f88e51961211cd3682a3a4a81569c"
+ integrity sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ==
+ dependencies:
+ "@types/node" "*"
+
abbrev@1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
@@ -1136,6 +1197,13 @@ braces@~3.0.2:
dependencies:
fill-range "^7.0.1"
+bufferutil@^4.0.1:
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.7.tgz#60c0d19ba2c992dd8273d3f73772ffc894c153ad"
+ integrity sha512-kukuqc39WOHtdxtw4UScxF/WVnMFVSQVKhtx3AjZJzhd0RGZZldcrfSEbVsWWe6KNH253574cq5F+wpv0G9pJw==
+ dependencies:
+ node-gyp-build "^4.3.0"
+
version "3.1.2"
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
@@ -1289,12 +1357,20 @@ cross-fetch@^3.1.5:
dependencies:
node-fetch "2.6.7"
+d@1, d@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a"
+ integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==
+ dependencies:
+ es5-ext "^0.10.50"
+ type "^1.0.1"
+
date-fns@^2.29.1:
version "2.29.3"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8"
integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==
[email protected], debug@^2.2.0:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
@@ -1446,6 +1522,32 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"
+es5-ext@^0.10.35, es5-ext@^0.10.50:
+ version "0.10.62"
+ resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.62.tgz#5e6adc19a6da524bf3d1e02bbc8960e5eb49a9a5"
+ integrity sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==
+ dependencies:
+ es6-iterator "^2.0.3"
+ es6-symbol "^3.1.3"
+ next-tick "^1.1.0"
+
+es6-iterator@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
+ integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==
+ dependencies:
+ d "1"
+ es5-ext "^0.10.35"
+ es6-symbol "^3.1.1"
+
+es6-symbol@^3.1.1, es6-symbol@^3.1.3:
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18"
+ integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==
+ dependencies:
+ d "^1.0.1"
+ ext "^1.1.2"
+
esbuild@^0.17.11:
version "0.17.11"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.17.11.tgz#9f3122643b21d7e7731e42f18576c10bfa28152b"
@@ -1531,6 +1633,13 @@ express@^4.18.2:
utils-merge "1.0.1"
vary "~1.1.2"
+ext@^1.1.2:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f"
+ integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==
+ dependencies:
+ type "^2.7.2"
+
version "4.1.0"
resolved "https://registry.yarnpkg.com/faker/-/faker-4.1.0.tgz#1e45bbbecc6774b3c195fad2835109c6d748cc3f"
@@ -1960,6 +2069,11 @@ is-typed-array@^1.1.10, is-typed-array@^1.1.9:
gopd "^1.0.1"
has-tostringtag "^1.0.0"
+is-typedarray@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
+ integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==
+
is-weakref@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2"
@@ -2101,6 +2215,11 @@ neo-async@^2.6.0:
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
+next-tick@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb"
+ integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==
+
node-cache@^5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/node-cache/-/node-cache-5.1.2.tgz#f264dc2ccad0a780e76253a694e9fd0ed19c398d"
@@ -2115,6 +2234,11 @@ [email protected]:
dependencies:
whatwg-url "^5.0.0"
+node-gyp-build@^4.3.0:
+ version "4.6.0"
+ resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.0.tgz#0c52e4cbf54bbd28b709820ef7b6a3c2d6209055"
+ integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==
+
nodemon@^2.0.21:
version "2.0.21"
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.21.tgz#267edff25578da91075d6aa54346ef77ecb7b302"
@@ -2564,6 +2688,16 @@ type-is@~1.6.18:
media-typer "0.3.0"
mime-types "~2.1.24"
+type@^1.0.1:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0"
+ integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==
+
+type@^2.7.2:
+ version "2.7.2"
+ resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0"
+ integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==
+
typed-array-length@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb"
@@ -2573,6 +2707,13 @@ typed-array-length@^1.0.4:
for-each "^0.3.3"
is-typed-array "^1.1.9"
+typedarray-to-buffer@^3.1.5:
+ version "3.1.5"
+ resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
+ integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==
+ dependencies:
+ is-typedarray "^1.0.0"
+
typescript@^3.7.5:
version "3.9.10"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"
@@ -2618,6 +2759,13 @@ [email protected], unpipe@~1.0.0:
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
+utf-8-validate@^5.0.2:
+ version "5.0.10"
+ resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2"
+ integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==
+ dependencies:
+ node-gyp-build "^4.3.0"
+
version "1.0.1"
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
@@ -2648,6 +2796,18 @@ webidl-conversions@^3.0.0:
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
+websocket@^1.0.34:
+ version "1.0.34"
+ resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111"
+ integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==
+ dependencies:
+ bufferutil "^4.0.1"
+ debug "^2.2.0"
+ es5-ext "^0.10.50"
+ typedarray-to-buffer "^3.1.5"
+ utf-8-validate "^5.0.2"
+ yaeti "^0.0.6"
+
whatwg-url@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
@@ -2716,6 +2876,11 @@ y18n@^5.0.5:
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
+yaeti@^0.0.6:
+ version "0.0.6"
+ resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577"
+ integrity sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==
+
yamljs@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/yamljs/-/yamljs-0.3.0.tgz#dc060bf267447b39f7304e9b2bfbe8b5a7ddb03b"
diff --git a/api-service/playground_client/__init__.py b/api-service/playground_client/__init__.py
index 69fc080c1..eaf813cf2 100644
--- a/api-service/playground_client/__init__.py
+++ b/api-service/playground_client/__init__.py
@@ -47,5 +47,6 @@ from playground_client.models.process_response import ProcessResponse
from playground_client.models.read_filesystem_file_response import ReadFilesystemFileResponse
from playground_client.models.session_response import SessionResponse
from playground_client.models.start_process_params import StartProcessParams
+from playground_client.models.tools_human_response import ToolsHumanResponse
from playground_client.models.write_filesystem_file_request import WriteFilesystemFileRequest
from playground_client.models.write_process_stdin_request import WriteProcessStdinRequest
diff --git a/api-service/playground_client/api/default_api.py b/api-service/playground_client/api/default_api.py
index b4fd0a4f7..6e146b3e8 100644
--- a/api-service/playground_client/api/default_api.py
+++ b/api-service/playground_client/api/default_api.py
@@ -31,6 +31,7 @@ from playground_client.models.process_response import ProcessResponse
from playground_client.models.read_filesystem_file_response import ReadFilesystemFileResponse
from playground_client.models.session_response import SessionResponse
from playground_client.models.start_process_params import StartProcessParams
+from playground_client.models.tools_human_response import ToolsHumanResponse
from playground_client.models.write_filesystem_file_request import WriteFilesystemFileRequest
from playground_client.models.write_process_stdin_request import WriteProcessStdinRequest
@@ -1839,6 +1840,161 @@ class DefaultApi(object):
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))
+ @validate_arguments
+ def wait_for_human_response(self, run_id : StrictStr, project_id : StrictStr, route_id : StrictStr, **kwargs) -> ToolsHumanResponse: # noqa: E501
+ """wait_for_human_response # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.wait_for_human_response(run_id, project_id, route_id, async_req=True)
+ >>> result = thread.get()
+
+ :param run_id: (required)
+ :type run_id: str
+ :param project_id: (required)
+ :type project_id: str
+ :param route_id: (required)
+ :type route_id: str
+ :param async_req: Whether to execute the request asynchronously.
+ :type async_req: bool, optional
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :type _preload_content: bool, optional
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: Returns the result object.
+ If the method is called asynchronously,
+ returns the request thread.
+ :rtype: ToolsHumanResponse
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.wait_for_human_response_with_http_info(run_id, project_id, route_id, **kwargs) # noqa: E501
+
+ @validate_arguments
+ def wait_for_human_response_with_http_info(self, run_id : StrictStr, project_id : StrictStr, route_id : StrictStr, **kwargs): # noqa: E501
+ """wait_for_human_response # noqa: E501
+
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+
+ >>> thread = api.wait_for_human_response_with_http_info(run_id, project_id, route_id, async_req=True)
+ >>> result = thread.get()
+
+ :param run_id: (required)
+ :type run_id: str
+ :param project_id: (required)
+ :type project_id: str
+ :param route_id: (required)
+ :type route_id: str
+ :param async_req: Whether to execute the request asynchronously.
+ :type async_req: bool, optional
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :type _return_http_data_only: bool, optional
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :type _preload_content: bool, optional
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the authentication
+ in the spec for a single request.
+ :type _request_auth: dict, optional
+ :type _content_type: string, optional: force content-type for the request
+ :return: Returns the result object.
+ If the method is called asynchronously,
+ returns the request thread.
+ :rtype: tuple(ToolsHumanResponse, status_code(int), headers(HTTPHeaderDict))
+ """
+
+ _params = locals()
+
+ _all_params = [
+ 'run_id',
+ 'project_id',
+ 'route_id'
+ ]
+ _all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout',
+ '_request_auth',
+ '_content_type',
+ '_headers'
+ ]
+ )
+
+ # validate the arguments
+ for _key, _val in _params['kwargs'].items():
+ if _key not in _all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method wait_for_human_response" % _key
+ )
+ _params[_key] = _val
+ del _params['kwargs']
+
+ _collection_formats = {}
+
+ # process the path parameters
+ _path_params = {}
+
+ # process the query parameters
+ _query_params = []
+ if _params.get('run_id') is not None: # noqa: E501
+ _query_params.append(('runID', _params['run_id']))
+ if _params.get('project_id') is not None: # noqa: E501
+ _query_params.append(('projectID', _params['project_id']))
+ if _params.get('route_id') is not None: # noqa: E501
+ _query_params.append(('routeID', _params['route_id']))
+
+ # process the header parameters
+ _header_params = dict(_params.get('_headers', {}))
+
+ # process the form parameters
+ _form_params = []
+ _files = {}
+
+ # process the body parameter
+ _body_params = None
+
+ # set the HTTP header `Accept`
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # authentication setting
+ _auth_settings = [] # noqa: E501
+
+ _response_types_map = {
+ '200': "ToolsHumanResponse",
+ }
+
+ return self.api_client.call_api(
+ '/tools', 'GET',
+ _path_params,
+ _query_params,
+ _header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ response_types_map=_response_types_map,
+ auth_settings=_auth_settings,
+ async_req=_params.get('async_req'),
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=_params.get('_preload_content', True),
+ _request_timeout=_params.get('_request_timeout'),
+ collection_formats=_collection_formats,
+ _request_auth=_params.get('_request_auth'))
+
@validate_arguments
def write_filesystem_file(self, session_id : StrictStr, path : StrictStr, write_filesystem_file_request : WriteFilesystemFileRequest, **kwargs) -> None: # noqa: E501
"""write_filesystem_file # noqa: E501
diff --git a/api-service/playground_client/docs/DefaultApi.md b/api-service/playground_client/docs/DefaultApi.md
index 033606ae7..6f2295031 100644
--- a/api-service/playground_client/docs/DefaultApi.md
+++ b/api-service/playground_client/docs/DefaultApi.md
@@ -16,6 +16,7 @@ Method | HTTP request | Description
[**read_filesystem_file**](DefaultApi.md#read_filesystem_file) | **GET** /sessions/{sessionID}/filesystem/file |
[**start_process**](DefaultApi.md#start_process) | **POST** /sessions/{sessionID}/processes |
[**stop_process**](DefaultApi.md#stop_process) | **DELETE** /sessions/{sessionID}/processes/{processID} |
+[**wait_for_human_response**](DefaultApi.md#wait_for_human_response) | **GET** /tools |
[**write_filesystem_file**](DefaultApi.md#write_filesystem_file) | **PUT** /sessions/{sessionID}/filesystem/file |
[**write_process_stdin**](DefaultApi.md#write_process_stdin) | **POST** /sessions/{sessionID}/processes/{processID}/stdin |
@@ -770,6 +771,71 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **wait_for_human_response**
+> ToolsHumanResponse wait_for_human_response(run_id, project_id, route_id)
+
+
+
+### Example
+
+```python
+from __future__ import print_function
+import time
+import os
+import playground_client
+from playground_client.rest import ApiException
+from pprint import pprint
+# Defining the host is optional and defaults to https://localhost:9001
+# See configuration.py for a list of all supported configuration parameters.
+configuration = playground_client.Configuration(
+ host = "https://localhost:9001"
+)
+
+
+# Enter a context with an instance of the API client
+with playground_client.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = playground_client.DefaultApi(api_client)
+ run_id = 'run_id_example' # str |
+ project_id = 'project_id_example' # str |
+ route_id = 'route_id_example' # str |
+
+ try:
+ api_response = api_instance.wait_for_human_response(run_id, project_id, route_id)
+ print("The response of DefaultApi->wait_for_human_response:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DefaultApi->wait_for_human_response: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **run_id** | **str**| |
+ **project_id** | **str**| |
+ **route_id** | **str**| |
+
+### Return type
+
+[**ToolsHumanResponse**](ToolsHumanResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Ok | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **write_filesystem_file**
> write_filesystem_file(session_id, path, write_filesystem_file_request)
diff --git a/api-service/playground_client/docs/ToolsHumanResponse.md b/api-service/playground_client/docs/ToolsHumanResponse.md
new file mode 100644
index 000000000..e2da018e4
--- /dev/null
+++ b/api-service/playground_client/docs/ToolsHumanResponse.md
@@ -0,0 +1,28 @@
+# ToolsHumanResponse
+
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**response** | **str** | |
+
+## Example
+
+```python
+from playground_client.models.tools_human_response import ToolsHumanResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ToolsHumanResponse from a JSON string
+tools_human_response_instance = ToolsHumanResponse.from_json(json)
+# print the JSON string representation of the object
+print ToolsHumanResponse.to_json()
+
+# convert the object into a dict
+tools_human_response_dict = tools_human_response_instance.to_dict()
+# create an instance of ToolsHumanResponse from a dict
+tools_human_response_form_dict = tools_human_response.from_dict(tools_human_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/api-service/playground_client/models/__init__.py b/api-service/playground_client/models/__init__.py
index 748e4ca28..50ee2e6ee 100644
--- a/api-service/playground_client/models/__init__.py
+++ b/api-service/playground_client/models/__init__.py
@@ -32,5 +32,6 @@ from playground_client.models.process_response import ProcessResponse
from playground_client.models.read_filesystem_file_response import ReadFilesystemFileResponse
from playground_client.models.session_response import SessionResponse
from playground_client.models.start_process_params import StartProcessParams
+from playground_client.models.tools_human_response import ToolsHumanResponse
from playground_client.models.write_filesystem_file_request import WriteFilesystemFileRequest
from playground_client.models.write_process_stdin_request import WriteProcessStdinRequest
diff --git a/api-service/playground_client/models/tools_human_response.py b/api-service/playground_client/models/tools_human_response.py
new file mode 100644
index 000000000..6bf9cda62
--- /dev/null
+++ b/api-service/playground_client/models/tools_human_response.py
@@ -0,0 +1,75 @@
+# coding: utf-8
+
+"""
+ playground
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by: https://openapi-generator.tech
+"""
+
+
+from __future__ import annotations
+from inspect import getfullargspec
+import pprint
+import re # noqa: F401
+import json
+
+
+
+from pydantic import BaseModel, StrictStr
+
+class ToolsHumanResponse(BaseModel):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+ response: StrictStr = ...
+ __properties = ["response"]
+
+ class Config:
+ allow_population_by_field_name = True
+ validate_assignment = True
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.dict(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> ToolsHumanResponse:
+ """Create an instance of ToolsHumanResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self):
+ """Returns the dictionary representation of the model using alias"""
+ _dict = self.dict(by_alias=True,
+ exclude={
+ },
+ exclude_none=True)
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: dict) -> ToolsHumanResponse:
+ """Create an instance of ToolsHumanResponse from a dict"""
+ if obj is None:
+ return None
+
+ if type(obj) is not dict:
+ return ToolsHumanResponse.parse_obj(obj)
+
+ # raise errors for additional fields in the input
+ for _key in obj.keys():
+ if _key not in cls.__properties:
+ raise ValueError("Error due to additional fields (not defined in ToolsHumanResponse) in the input: " + obj)
+
+ _obj = ToolsHumanResponse.parse_obj({
+ "response": obj.get("response")
+ })
+ return _obj
+
diff --git a/api-service/playground_client/test/test_default_api.py b/api-service/playground_client/test/test_default_api.py
index 1cf5e5a1f..e2001aead 100644
--- a/api-service/playground_client/test/test_default_api.py
+++ b/api-service/playground_client/test/test_default_api.py
@@ -100,6 +100,12 @@ class TestDefaultApi(unittest.TestCase):
"""
pass
+ def test_wait_for_human_response(self):
+ """Test case for wait_for_human_response
+
+ """
+ pass
+
def test_write_filesystem_file(self):
"""Test case for write_filesystem_file
diff --git a/api-service/playground_client/test/test_tools_human_response.py b/api-service/playground_client/test/test_tools_human_response.py
new file mode 100644
index 000000000..0d59c7473
--- /dev/null
+++ b/api-service/playground_client/test/test_tools_human_response.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ playground
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by: https://openapi-generator.tech
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+import datetime
+
+import playground_client
+from playground_client.models.tools_human_response import ToolsHumanResponse # noqa: E501
+from playground_client.rest import ApiException
+
+class TestToolsHumanResponse(unittest.TestCase):
+ """ToolsHumanResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional):
+ """Test ToolsHumanResponse
+ include_option is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ToolsHumanResponse`
+ """
+ model = playground_client.models.tools_human_response.ToolsHumanResponse() # noqa: E501
+ if include_optional :
+ return ToolsHumanResponse(
+ response = ''
+ )
+ else :
+ return ToolsHumanResponse(
+ response = '',
+ )
+ """
+
+ def testToolsHumanResponse(self):
+ """Test ToolsHumanResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/api-service/playground_client_README.md b/api-service/playground_client_README.md
index 4f2e745d2..0dace1db2 100644
--- a/api-service/playground_client_README.md
+++ b/api-service/playground_client_README.md
@@ -78,6 +78,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**read_filesystem_file**](playground_client/docs/DefaultApi.md#read_filesystem_file) | **GET** /sessions/{sessionID}/filesystem/file |
*DefaultApi* | [**start_process**](playground_client/docs/DefaultApi.md#start_process) | **POST** /sessions/{sessionID}/processes |
*DefaultApi* | [**stop_process**](playground_client/docs/DefaultApi.md#stop_process) | **DELETE** /sessions/{sessionID}/processes/{processID} |
+*DefaultApi* | [**wait_for_human_response**](playground_client/docs/DefaultApi.md#wait_for_human_response) | **GET** /tools |
*DefaultApi* | [**write_filesystem_file**](playground_client/docs/DefaultApi.md#write_filesystem_file) | **PUT** /sessions/{sessionID}/filesystem/file |
*DefaultApi* | [**write_process_stdin**](playground_client/docs/DefaultApi.md#write_process_stdin) | **POST** /sessions/{sessionID}/processes/{processID}/stdin |
@@ -102,6 +103,7 @@ Class | Method | HTTP request | Description
- [ReadFilesystemFileResponse](playground_client/docs/ReadFilesystemFileResponse.md)
- [SessionResponse](playground_client/docs/SessionResponse.md)
- [StartProcessParams](playground_client/docs/StartProcessParams.md)
+ - [ToolsHumanResponse](playground_client/docs/ToolsHumanResponse.md)
- [WriteFilesystemFileRequest](playground_client/docs/WriteFilesystemFileRequest.md)
- [WriteProcessStdinRequest](playground_client/docs/WriteProcessStdinRequest.md)