runnable-hub/python/runnable_workers/apiWorker/response.py (7 lines of code) (raw):

from runnable_hub import RunnableResponse from typing import Dict, List, Optional class ApiResponse(RunnableResponse): runnableCode: str = "API" result: str statusCode: int outputs: Optional[Dict|List|str]