'1.0', 'info' => ['style' => 'ROA', 'product' => 'PAILangStudio', 'version' => '2024-07-10'], 'components' => [ 'schemas' => [ 'Connection' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'ConnectionId' => ['type' => 'string'], 'ConnectionType' => ['type' => 'string'], 'ConnectionName' => ['type' => 'string'], 'CustomType' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'Configs' => [ 'type' => 'object', 'additionalProperties' => ['type' => 'string'], ], 'Secrets' => [ 'type' => 'object', 'additionalProperties' => ['type' => 'string'], ], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'Creator' => ['type' => 'string'], 'ResourceMeta' => [ 'type' => 'object', 'properties' => [ 'InstanceName' => ['type' => 'string'], 'InstanceId' => ['type' => 'string'], ], ], 'Models' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Model' => ['type' => 'string'], 'ModelType' => ['type' => 'string'], 'DisplayName' => ['type' => 'string'], 'ToolCall' => ['type' => 'boolean'], 'SupportVision' => ['type' => 'boolean'], 'SupportReasoning' => ['type' => 'boolean'], 'SupportResponseSchema' => ['type' => 'boolean'], 'MaxModelLength' => ['type' => 'integer', 'format' => 'int32'], ], ], ], ], ], 'Deployment' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'Creator' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'DeploymentId' => ['type' => 'string'], 'DeploymentStatus' => ['type' => 'string'], 'OperationType' => ['type' => 'string'], 'ResourceType' => ['type' => 'string'], 'ResourceId' => ['type' => 'string'], 'ResourceSnapshotId' => ['type' => 'string'], 'ServiceName' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'WorkDir' => ['type' => 'string'], 'EnableTrace' => ['type' => 'boolean'], 'ChatHistoryConfig' => [ 'type' => 'object', 'properties' => [ 'StorageType' => [ 'type' => 'string', 'enum' => ['LOCAL', 'RDS', 'OSS'], ], 'ConnectionName' => ['type' => 'string'], ], ], 'ContentModerationConfig' => [ 'type' => 'object', 'properties' => [ 'EnableInputModeration' => ['type' => 'boolean'], 'EnableOutputModeration' => ['type' => 'boolean'], 'StreamingModerationThreshold' => ['type' => 'integer', 'format' => 'int32'], ], ], 'DeploymentConfig' => ['type' => 'string'], 'DeploymentStages' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Stage' => ['type' => 'integer', 'format' => 'int32'], 'StageName' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'GmtStartTime' => ['type' => 'string'], 'GmtEndTime' => ['type' => 'string'], 'StageStatus' => ['type' => 'string'], 'ErrorMessage' => ['type' => 'string'], 'StageInfo' => ['type' => 'string'], ], ], ], 'ErrorMessage' => ['type' => 'string'], 'AutoApproval' => ['type' => 'boolean'], ], ], 'Flow' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'FlowId' => ['type' => 'string'], 'FlowName' => ['type' => 'string'], 'FlowStoragePath' => ['type' => 'string'], 'FlowType' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'WorkDir' => ['type' => 'string'], 'Creator' => ['type' => 'string'], 'CreateFrom' => ['type' => 'string'], 'FlowTemplateId' => ['type' => 'string'], 'Runtime' => [ 'type' => 'object', 'properties' => [ 'RuntimeId' => ['type' => 'string'], 'RuntimeName' => ['type' => 'string'], 'RuntimeType' => ['type' => 'string'], 'RuntimeStatus' => ['type' => 'string'], 'SupportSSEStream' => ['type' => 'boolean'], ], ], 'Version' => ['type' => 'string'], 'RuntimeId' => ['type' => 'string'], 'SourceUri' => ['type' => 'string'], 'CodeModeRunInfo' => ['type' => 'string'], ], ], 'FlowRun' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'FlowId' => ['type' => 'string'], 'FlowName' => ['type' => 'string'], 'FlowRunId' => ['type' => 'string'], 'RunStatus' => ['type' => 'string'], 'RunMode' => ['type' => 'string'], 'NodeName' => ['type' => 'string'], 'Variant' => ['type' => 'string'], 'Exception' => ['type' => 'string'], 'RunResult' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'GmtStartTime' => ['type' => 'string'], 'GmtFinishTime' => ['type' => 'string'], 'Duration' => ['type' => 'integer', 'format' => 'int32'], 'Creator' => ['type' => 'string'], 'RunName' => ['type' => 'string'], 'EcsSpec' => [ 'type' => 'object', 'properties' => [ 'InstanceType' => ['type' => 'string'], 'GPUType' => ['type' => 'string'], 'CPU' => ['type' => 'integer', 'format' => 'int32'], 'GPU' => ['type' => 'integer', 'format' => 'int32'], 'Memory' => ['type' => 'integer', 'format' => 'int32'], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], 'PodCount' => ['type' => 'integer', 'format' => 'int32'], 'GPUMemory' => ['type' => 'integer', 'format' => 'int32'], 'GPUCorePercentage' => ['type' => 'integer', 'format' => 'int32'], 'ExtraEphemeralStorage' => ['type' => 'integer', 'format' => 'int32'], 'QuotaId' => ['type' => 'string'], 'QuotaType' => ['type' => 'string'], ], ], 'ResourceId' => ['type' => 'string'], 'DataSources' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'DatasetId' => ['type' => 'string'], 'Uri' => ['type' => 'string'], 'MountPath' => ['type' => 'string'], ], ], ], 'DataColumnMapping' => [ 'type' => 'object', 'additionalProperties' => ['type' => 'string'], ], 'EvaluationConfigs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'FlowSource' => [ 'type' => 'object', 'properties' => [ 'Id' => ['type' => 'string'], 'Type' => ['type' => 'string'], 'Name' => ['type' => 'string'], ], ], 'DataColumnMapping' => [ 'type' => 'object', 'additionalProperties' => ['type' => 'string'], ], 'InputsOverrideConfig' => ['type' => 'string'], 'Name' => ['type' => 'string'], 'Type' => ['type' => 'string'], 'Inputs' => ['type' => 'string'], ], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ 'VpcId' => ['type' => 'string'], 'VSwitchId' => ['type' => 'string'], 'SecurityGroupId' => ['type' => 'string'], ], ], 'Envs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Value' => ['type' => 'string'], ], ], ], 'Labels' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Value' => ['type' => 'string'], ], ], ], 'CredentialConfig' => [ 'type' => 'object', 'properties' => [ 'EnableCredentialInject' => ['type' => 'boolean'], 'AliyunEnvRoleKey' => ['type' => 'string'], 'CredentialConfigItems' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Type' => ['type' => 'string'], 'Roles' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'AssumeRoleFor' => ['type' => 'string'], 'RoleType' => ['type' => 'string'], 'RoleArn' => ['type' => 'string'], ], ], ], ], ], ], ], ], 'RunTimeout' => ['type' => 'integer', 'format' => 'int32'], 'ChildRuns' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'FlowRunId' => ['type' => 'string'], 'RunName' => ['type' => 'string'], 'RunMode' => ['type' => 'string'], 'RunStatus' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'GmtStartTime' => ['type' => 'string'], 'GmtFinishTime' => ['type' => 'string'], 'Duration' => ['type' => 'integer', 'format' => 'int32'], 'FlowSource' => [ 'type' => 'object', 'properties' => [ 'Id' => ['type' => 'string'], 'Type' => ['type' => 'string'], 'Name' => ['type' => 'string'], ], ], 'JobInfo' => [ 'type' => 'object', 'properties' => [ 'JobId' => ['type' => 'string'], ], ], 'RunResult' => ['type' => 'string'], ], ], ], 'NodeRunInfos' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'NodeName' => ['type' => 'string'], 'Status' => ['type' => 'string'], 'Inputs' => ['type' => 'string'], 'Output' => ['type' => 'string'], 'ErrorMessage' => ['type' => 'string'], 'Duration' => ['type' => 'string'], 'Stdout' => ['type' => 'string'], ], ], ], 'EvaluationWorkerCount' => ['type' => 'integer', 'format' => 'int32'], ], ], 'FlowTemplate' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'FlowStoragePath' => ['type' => 'string'], 'FlowTemplateId' => ['type' => 'string'], 'FlowType' => ['type' => 'string'], 'TemplateGroup' => ['type' => 'string'], 'TemplateName' => ['type' => 'string'], 'Url' => ['type' => 'string'], 'FlowFiles' => ['type' => 'string'], 'DisplayName' => ['type' => 'string'], 'DisplayNameI18N' => [ 'type' => 'object', 'additionalProperties' => ['type' => 'string'], ], 'DescriptionI18N' => [ 'type' => 'object', 'additionalProperties' => ['type' => 'string'], ], 'Version' => ['type' => 'string'], 'Locale' => ['type' => 'string'], 'ReferenceCount' => ['type' => 'integer', 'format' => 'int32'], 'AliyunDocumentId' => ['type' => 'string'], 'Labels' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Value' => ['type' => 'string'], ], ], ], ], ], 'KnowledgeBase' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'Name' => ['type' => 'string'], 'KnowledgeBaseId' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'KnowledgeBaseType' => ['type' => 'string'], 'DatasetId' => ['type' => 'string'], 'DataSources' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Uri' => ['type' => 'string'], ], ], ], 'OutputDir' => ['type' => 'string'], 'ChunkConfig' => [ 'type' => 'object', 'properties' => [ 'ChunkSize' => ['type' => 'integer', 'format' => 'int32'], 'ChunkOverlap' => ['type' => 'integer', 'format' => 'int32'], 'ChunkDuration' => ['type' => 'integer', 'format' => 'int32'], 'ChunkStrategy' => ['type' => 'string'], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'properties' => [ 'ConnectionName' => ['type' => 'string'], 'ConnectionId' => ['type' => 'string'], 'Model' => ['type' => 'string'], ], ], 'VectorDBConfig' => [ 'type' => 'object', 'properties' => [ 'VectorDBType' => ['type' => 'string'], 'ConnectionName' => ['type' => 'string'], 'ConnectionId' => ['type' => 'string'], 'CollectionName' => ['type' => 'string'], ], ], 'Creator' => ['type' => 'string'], 'RuntimeId' => ['type' => 'string'], 'MetaDataConfig' => [ 'type' => 'object', 'properties' => [ 'CustomMetaData' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'ValueType' => ['type' => 'string'], 'ReferenceCount' => ['type' => 'integer', 'format' => 'int32'], 'ValueCount' => ['type' => 'integer', 'format' => 'int32'], ], ], ], ], ], 'AutoUpdateConfig' => [ 'type' => 'object', 'properties' => [ 'Status' => ['type' => 'string'], 'ResourceId' => ['type' => 'string'], 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32'], 'EmbeddingConfig' => [ 'type' => 'object', 'properties' => [ 'BatchSize' => ['type' => 'integer', 'format' => 'int32'], 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'maximum' => '200'], ], ], 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc'], 'EcsSpecs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Type' => ['type' => 'string'], 'InstanceType' => ['type' => 'string'], 'PodCount' => ['type' => 'integer', 'format' => 'int32'], 'GPUType' => ['type' => 'string'], 'CPU' => ['type' => 'integer', 'format' => 'int32'], 'GPU' => ['type' => 'integer', 'format' => 'int32'], 'Memory' => ['type' => 'integer', 'format' => 'int32'], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], 'Driver' => ['type' => 'string'], ], ], ], ], ], 'VersionName' => ['type' => 'string'], 'IndexColumnConfig' => [ 'type' => 'object', 'properties' => [ 'EmbeddingColumns' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], ], ], ], 'ContentColumns' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], ], ], ], 'ColumnDefinitions' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], ], ], ], ], ], ], ], 'KnowledgeBaseFileChunk' => [ 'type' => 'object', 'properties' => [ 'Score' => ['type' => 'number', 'format' => 'float'], 'ChunkId' => ['type' => 'string'], 'ChunkStart' => ['type' => 'integer', 'format' => 'int32'], 'ChunkEnd' => ['type' => 'integer', 'format' => 'int32'], 'ChunkSequence' => ['type' => 'integer', 'format' => 'int32'], 'ChunkContent' => ['type' => 'string'], 'ChunkSize' => ['type' => 'integer', 'format' => 'int32'], 'ChunkStatus' => ['type' => 'string'], 'DownloadUrl' => ['type' => 'string'], 'ThumbnailUrl' => ['type' => 'string'], 'ChunkAttachment' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'PlaceholderId' => ['type' => 'string'], 'Type' => ['type' => 'string'], 'Uri' => ['type' => 'string'], 'DownloadUrl' => ['type' => 'string'], ], ], ], 'MetaData' => [ 'type' => 'object', 'properties' => [ 'FileName' => ['type' => 'string'], 'FileUri' => ['type' => 'string'], 'FileMetaId' => ['type' => 'string'], ], ], ], ], 'KnowledgeBaseJob' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'Creator' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'KnowledgeBaseId' => ['type' => 'string'], 'KnowledgeBaseJobId' => ['type' => 'string'], 'JobAction' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'Status' => ['type' => 'string'], 'ResourceId' => ['type' => 'string'], 'EcsSpecs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Type' => ['type' => 'string'], 'InstanceType' => ['type' => 'string'], 'PodCount' => ['type' => 'integer', 'format' => 'int32'], 'CPU' => ['type' => 'integer', 'format' => 'int32'], 'GPU' => ['type' => 'integer', 'format' => 'int32'], 'Memory' => ['type' => 'integer', 'format' => 'int32'], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], 'GPUType' => ['type' => 'string'], 'Driver' => ['type' => 'string'], ], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ 'VpcId' => ['type' => 'string'], 'VSwitchId' => ['type' => 'string'], 'SecurityGroupId' => ['type' => 'string'], ], ], 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32'], 'GmtFinishTime' => ['type' => 'string'], 'ErrorMessage' => ['type' => 'string'], 'PipelineRunInfo' => [ 'type' => 'object', 'properties' => [ 'PipelineRunId' => ['type' => 'string'], ], ], 'KnowledgeBaseJobResult' => [ 'type' => 'object', 'properties' => [ 'TotalFileCount' => ['type' => 'integer', 'format' => 'int32'], 'AddChunkCount' => ['type' => 'integer', 'format' => 'int32'], 'DeleteChunkCount' => ['type' => 'integer', 'format' => 'int32'], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'properties' => [ 'BatchSize' => ['type' => 'integer', 'format' => 'int32'], 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'maximum' => '200'], ], ], ], ], 'Runtime' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'RuntimeId' => ['type' => 'string'], 'RuntimeName' => ['type' => 'string'], 'RuntimeType' => ['type' => 'string'], 'RuntimeStatus' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'Creator' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'EcsSpec' => [ 'type' => 'object', 'properties' => [ 'InstanceType' => ['type' => 'string'], 'GPUType' => ['type' => 'string'], 'CPU' => ['type' => 'integer', 'format' => 'int32'], 'GPU' => ['type' => 'integer', 'format' => 'int32'], 'Memory' => ['type' => 'integer', 'format' => 'int32'], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], 'Driver' => ['type' => 'string'], ], ], 'ResourceId' => ['type' => 'string'], 'UserVpc' => [ 'type' => 'object', 'properties' => [ 'VpcId' => ['type' => 'string'], 'VSwitchId' => ['type' => 'string'], 'SecurityGroupId' => ['type' => 'string'], 'DefaultRoute' => ['type' => 'string'], 'ExtendedCIDRs' => [ 'type' => 'array', 'items' => ['type' => 'string'], ], ], ], 'Envs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Value' => ['type' => 'string'], ], ], ], 'Labels' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Value' => ['type' => 'string'], ], ], ], 'DataSources' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'DatasetId' => ['type' => 'string'], 'Uri' => ['type' => 'string'], 'MountPath' => ['type' => 'string'], ], ], ], 'RunTimeout' => ['type' => 'integer', 'format' => 'int32'], 'CredentialConfig' => [ 'type' => 'object', 'properties' => [ 'EnableCredentialInject' => ['type' => 'boolean'], 'AliyunEnvRoleKey' => ['type' => 'string'], 'CredentialConfigItems' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Type' => ['type' => 'string'], 'Roles' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'AssumeRoleFor' => ['type' => 'string'], 'RoleType' => ['type' => 'string'], 'RoleArn' => ['type' => 'string'], ], ], ], ], ], ], ], ], 'WorkDir' => ['type' => 'string'], 'Version' => ['type' => 'string'], 'RuntimeLog' => ['type' => 'string'], 'AutoUpdateImage' => ['type' => 'boolean'], ], ], 'Snapshot' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => ['type' => 'string'], 'Accessibility' => ['type' => 'string'], 'Creator' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string'], 'GmtModifiedTime' => ['type' => 'string'], 'SnapshotId' => ['type' => 'string'], 'SnapshotName' => ['type' => 'string'], 'Description' => ['type' => 'string'], 'SnapshotResourceType' => ['type' => 'string'], 'SnapshotResourceId' => ['type' => 'string'], 'CreationType' => ['type' => 'string'], 'SnapshotStoragePath' => ['type' => 'string'], 'WorkDir' => ['type' => 'string'], 'SnapshotUrl' => ['type' => 'string'], 'SnapshotStatus' => ['type' => 'string'], 'ErrorMessage' => ['type' => 'string'], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ 'VpcId' => ['type' => 'string'], 'VSwitchId' => ['type' => 'string'], 'SecurityGroupId' => ['type' => 'string'], ], ], ], ], 'apis' => [ 'CreateDeployment' => [ 'path' => '/api/v1/langstudio/deployments', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => false], 'Accessibility' => [ 'type' => 'string', 'required' => false, 'enum' => ['PUBLIC', 'PRIVATE'], ], 'ResourceType' => ['type' => 'string', 'required' => false], 'ResourceId' => ['type' => 'string', 'required' => false], 'ResourceSnapshotId' => ['type' => 'string', 'required' => false], 'ServiceName' => ['type' => 'string', 'required' => false], 'Description' => ['type' => 'string', 'required' => false], 'EnableTrace' => ['type' => 'boolean', 'required' => false], 'ChatHistoryConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'StorageType' => [ 'type' => 'string', 'required' => false, 'enum' => ['LOCAL', 'RDS', 'OSS'], ], 'ConnectionName' => ['type' => 'string', 'required' => false], ], ], 'WorkDir' => ['type' => 'string', 'required' => false], 'ContentModerationConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'EnableInputModeration' => ['type' => 'boolean', 'required' => false], 'EnableOutputModeration' => ['type' => 'boolean', 'required' => false], 'StreamingModerationThreshold' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], 'DeploymentConfig' => ['type' => 'string', 'required' => false], 'AutoApproval' => ['type' => 'boolean', 'required' => false], ], ], ], ], ], 'CreateKnowledgeBase' => [ 'path' => '/api/v1/langstudio/knowledgebases', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => true], 'Accessibility' => [ 'type' => 'string', 'required' => false, 'enum' => ['PUBLIC', 'PRIVATE'], ], 'Name' => ['type' => 'string', 'required' => true], 'Description' => ['type' => 'string', 'required' => false], 'KnowledgeBaseType' => ['type' => 'string', 'required' => true], 'OutputDir' => ['type' => 'string', 'required' => true], 'DataSources' => [ 'type' => 'array', 'required' => true, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Uri' => ['type' => 'string', 'required' => false], ], ], ], 'ChunkConfig' => [ 'type' => 'object', 'required' => true, 'properties' => [ 'ChunkSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'ChunkOverlap' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'ChunkDuration' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'ChunkStrategy' => ['type' => 'string', 'required' => false], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'required' => true, 'properties' => [ 'ConnectionId' => ['type' => 'string', 'required' => true], 'Model' => ['type' => 'string', 'required' => true], ], ], 'VectorDBConfig' => [ 'type' => 'object', 'required' => true, 'properties' => [ 'VectorDBType' => ['type' => 'string', 'required' => true], 'ConnectionId' => ['type' => 'string', 'required' => false], 'CollectionName' => ['type' => 'string', 'required' => false], ], ], 'RuntimeId' => ['type' => 'string', 'required' => false], 'MetaDataConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'CustomMetaData' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'ValueType' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'IndexColumnConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'EmbeddingColumns' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], ], ], ], 'ContentColumns' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], ], ], ], 'ColumnDefinitions' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], ], ], ], ], 'CreateKnowledgeBaseJob' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => true], 'Accessibility' => [ 'type' => 'string', 'required' => false, 'enum' => ['PUBLIC', 'PRIVATE'], ], 'Description' => ['type' => 'string', 'required' => false], 'JobAction' => ['type' => 'string', 'required' => false], 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'ResourceId' => ['type' => 'string', 'required' => false], 'EcsSpecs' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Type' => ['type' => 'string', 'required' => false], 'InstanceType' => ['type' => 'string', 'required' => false], 'PodCount' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'CPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'GPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Memory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'GPUType' => ['type' => 'string', 'required' => false], 'Driver' => ['type' => 'string', 'required' => false], ], ], ], 'UserVpc' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'VpcId' => ['type' => 'string', 'required' => false], 'VSwitchId' => ['type' => 'string', 'required' => false], 'SecurityGroupId' => ['type' => 'string', 'required' => false], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'BatchSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '200'], ], ], ], ], ], ], ], 'CreateRuntime' => [ 'path' => '/api/v1/langstudio/runtimes', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Accessibility' => [ 'type' => 'string', 'required' => false, 'enum' => ['PUBLIC', 'PRIVATE'], ], 'WorkspaceId' => ['type' => 'string', 'required' => false], 'RuntimeName' => ['type' => 'string', 'required' => false], 'RuntimeType' => [ 'type' => 'string', 'required' => false, 'enum' => ['DSW'], ], 'EcsSpec' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'InstanceType' => ['type' => 'string', 'required' => false], 'GPUType' => ['type' => 'string', 'required' => false], 'CPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'GPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Memory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Driver' => ['type' => 'string', 'required' => false], ], ], 'ResourceId' => ['type' => 'string', 'required' => false], 'UserVpc' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'VpcId' => ['type' => 'string', 'required' => false], 'VSwitchId' => ['type' => 'string', 'required' => false], 'SecurityGroupId' => ['type' => 'string', 'required' => false], 'DefaultRoute' => ['type' => 'string', 'required' => false], 'ExtendedCIDRs' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], ], ], 'Envs' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'Value' => ['type' => 'string', 'required' => false], ], ], ], 'Labels' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'Value' => ['type' => 'string', 'required' => false], ], ], ], 'DataSources' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'DatasetId' => ['type' => 'string', 'required' => false], 'Uri' => ['type' => 'string', 'required' => false], 'MountPath' => ['type' => 'string', 'required' => false], ], ], ], 'CredentialConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'EnableCredentialInject' => ['type' => 'boolean', 'required' => false], 'AliyunEnvRoleKey' => ['type' => 'string', 'required' => false], 'CredentialConfigItems' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'Type' => ['type' => 'string', 'required' => false], 'Roles' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'AssumeRoleFor' => ['type' => 'string', 'required' => false], 'RoleType' => ['type' => 'string', 'required' => false], 'RoleArn' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], ], ], 'RunTimeout' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'WorkDir' => ['type' => 'string', 'required' => false], 'AutoUpdateImage' => ['type' => 'boolean'], ], ], ], ], ], 'CreateSnapshot' => [ 'path' => '/api/v1/langstudio/snapshots', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Accessibility' => [ 'type' => 'string', 'required' => false, 'enum' => ['PUBLIC', 'PRIVATE'], ], 'CreationType' => [ 'type' => 'string', 'required' => false, 'enum' => ['ManualCreated', 'DeploymentAutoCreated', 'EvaluationAutoCreated'], ], 'SnapshotName' => ['type' => 'string', 'required' => false], 'Description' => ['type' => 'string', 'required' => false], 'WorkDir' => ['type' => 'string', 'required' => false], 'WorkspaceId' => ['type' => 'string', 'required' => false], 'SnapshotResourceType' => [ 'type' => 'string', 'required' => false, 'enum' => ['Flow'], ], 'SnapshotResourceId' => ['type' => 'string', 'required' => false], 'SourceStoragePath' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'DeleteDeployment' => [ 'path' => '/api/v1/langstudio/deployments/{DeploymentId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'DeploymentId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'DeleteKnowledgeBase' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DeleteKnowledgeBaseJob' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseJobId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DeleteRuntime' => [ 'path' => '/api/v1/langstudio/runtimes/{RuntimeId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'RuntimeId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'DeleteSnapshot' => [ 'path' => '/api/v1/langstudio/snapshots/{SnapshotId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SnapshotId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetDeployment' => [ 'path' => '/api/v1/langstudio/deployments/{DeploymentId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'DeploymentId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetKnowledgeBase' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'VersionName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetKnowledgeBaseJob' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseJobId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetRuntime' => [ 'path' => '/api/v1/langstudio/runtimes/{RuntimeId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'RuntimeId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetSnapshot' => [ 'path' => '/api/v1/langstudio/snapshots/{SnapshotId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SnapshotId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'ListDeployments' => [ 'path' => '/api/v1/langstudio/deployments', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'DeploymentId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Creator', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceSnapshotId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ServiceName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'DeploymentStatus', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'OperationType', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Accessibility', 'in' => 'query', 'schema' => ['type' => 'string'], ], ], ], 'ListKnowledgeBaseChunks' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasechunks', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'VersionName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MetaData', 'in' => 'query', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'FileUri' => ['type' => 'string', 'required' => false], 'FileMetaId' => ['type' => 'string', 'required' => false], ], ], ], [ 'name' => 'ChunkStatus', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], ], 'ListKnowledgeBaseJobs' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'KnowledgeBaseJobId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Status', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'JobAction', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Accessibility', 'in' => 'query', 'schema' => ['type' => 'string'], ], ], ], 'ListKnowledgeBases' => [ 'path' => '/api/v1/langstudio/knowledgebases', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Name', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Creator', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'KnowledgeBaseType', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Accessibility', 'in' => 'query', 'schema' => ['type' => 'string'], ], ], ], 'ListRuntimes' => [ 'path' => '/api/v1/langstudio/runtimes', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'RuntimeName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'RuntimeId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'WorkDir', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'RuntimeStatus', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Creator', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Version', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Accessibility', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'ListSnapshots' => [ 'path' => '/api/v1/langstudio/snapshots', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SnapshotId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SnapshotResourceType', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'enum' => ['Flow'], ], ], [ 'name' => 'SnapshotResourceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Creator', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'CreationType', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SnapshotStatus', 'in' => 'query', 'schema' => ['type' => 'string'], ], [ 'name' => 'Accessibility', 'in' => 'query', 'schema' => ['type' => 'string'], ], ], ], 'RetrieveKnowledgeBase' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/action/retrieve', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => true], 'Query' => ['type' => 'string', 'required' => true], 'TopK' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'ScoreThreshold' => ['type' => 'number', 'format' => 'float', 'required' => false], 'MetaDataFilterConditions' => ['type' => 'string', 'required' => false], 'QueryMode' => ['type' => 'string', 'required' => false], 'VersionName' => ['type' => 'string', 'required' => false], 'RerankConfig' => ['type' => 'string', 'required' => false], 'RewriteConfig' => ['type' => 'string', 'required' => false], 'HybridStrategyConfig' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'UpdateDeployment' => [ 'path' => '/api/v1/langstudio/deployments/{DeploymentId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'DeploymentId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Description' => ['type' => 'string', 'required' => false], 'WorkspaceId' => ['type' => 'string', 'required' => false], 'DeploymentConfig' => ['type' => 'string', 'required' => false], 'StageAction' => ['type' => 'string', 'required' => false], 'AutoApproval' => ['type' => 'boolean', 'required' => false], ], ], ], ], ], 'UpdateKnowledgeBase' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => true], 'Description' => ['type' => 'string', 'required' => false], 'RuntimeId' => ['type' => 'string', 'required' => false], 'BindRuntime' => ['type' => 'boolean', 'required' => false], 'MetaDataConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'CustomMetaData' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'ValueType' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'AutoUpdateConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Status' => ['type' => 'string', 'required' => false], 'ResourceId' => ['type' => 'string', 'required' => false], 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'EmbeddingConfig' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'BatchSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '200'], ], ], 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc', 'required' => false], 'EcsSpecs' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Type' => ['type' => 'string', 'required' => false], 'InstanceType' => ['type' => 'string', 'required' => false], 'PodCount' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'GPUType' => ['type' => 'string', 'required' => false], 'CPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'GPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Memory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'SharedMemory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Driver' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], ], ], ], ], 'UpdateKnowledgeBaseChunk' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasechunks/{KnowledgeBaseChunkId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseChunkId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'ChunkStatus' => ['type' => 'string', 'required' => false], 'ChunkContent' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'UpdateKnowledgeBaseJob' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseJobId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => true], 'Description' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'UpdateRuntime' => [ 'path' => '/api/v1/langstudio/runtimes/{RuntimeId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'WorkspaceId' => ['type' => 'string', 'required' => false], 'RunTimeout' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Version' => ['type' => 'string', 'required' => false], 'Action' => ['type' => 'string', 'required' => false], 'AutoUpdateImage' => ['type' => 'boolean'], ], ], ], [ 'name' => 'RuntimeId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'UpdateSnapshot' => [ 'path' => '/api/v1/langstudio/snapshots/{SnapshotId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'SnapshotId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Description' => ['type' => 'string', 'required' => false], 'WorkspaceId' => ['type' => 'string', 'required' => false], 'SnapshotName' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], 'endpoints' => [ ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.ap-northeast-1.aliyuncs.com', 'endpoint' => 'pailangstudio.ap-northeast-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.ap-northeast-1.aliyuncs.com'], ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.ap-southeast-1.aliyuncs.com', 'endpoint' => 'pailangstudio.ap-southeast-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.ap-southeast-1.aliyuncs.com'], ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.ap-southeast-5.aliyuncs.com', 'endpoint' => 'pailangstudio.ap-southeast-5.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.ap-southeast-5.aliyuncs.com'], ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-beijing.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-beijing.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-beijing.aliyuncs.com'], ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-hangzhou.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-hangzhou.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-hangzhou.aliyuncs.com'], ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-hongkong.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-hongkong.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-hongkong.aliyuncs.com'], ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-shanghai.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-shanghai.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-shanghai.aliyuncs.com'], ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-shenzhen.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-shenzhen.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-shenzhen.aliyuncs.com'], ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-wulanchabu.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-wulanchabu.aliyuncs.com'], ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pailangstudio.us-east-1.aliyuncs.com', 'endpoint' => 'pailangstudio.us-east-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.us-east-1.aliyuncs.com'], ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pailangstudio.eu-central-1.aliyuncs.com', 'endpoint' => 'pailangstudio.eu-central-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.eu-central-1.aliyuncs.com'], ], ];