'1.0', 'info' => [ 'style' => 'ROA', 'product' => 'PAILangStudio', 'version' => '2024-07-10', ], 'components' => [ 'schemas' => [ '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', ], ], ], ], ], ], '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', ], 'ServiceGroup' => [ 'type' => 'string', ], 'Description' => [ 'type' => 'string', ], 'WorkDir' => [ 'type' => 'string', ], 'EcsSpec' => [ 'type' => 'object', 'properties' => [ 'ResourceId' => [ 'type' => 'string', ], 'ResourceBurstable' => [ 'type' => 'boolean', ], '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', ], 'ComputingInstanceConfig' => [ 'type' => 'object', 'properties' => [ 'DisableSpotProtectionPeriod' => [ 'type' => 'boolean', ], 'ComputingInstances' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Type' => [ 'type' => 'string', ], 'SpotPriceLimit' => [ 'type' => 'number', 'format' => 'float', ], ], ], ], ], ], ], ], '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', ], ], ], ], 'DataSources' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'DatasetId' => [ 'type' => 'string', ], 'Uri' => [ 'type' => 'string', ], 'MountPath' => [ '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', ], ], ], ], ], ], ], ], ], 'EnableTrace' => [ 'type' => 'boolean', ], 'ChatHistoryConfig' => [ 'type' => 'object', 'properties' => [ 'StorageType' => [ 'type' => 'string', 'enum' => [ 'LOCAL', 'CLOUD', ], ], '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', ], ], ], 'EcsSpec' => [ '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', ], ], ], '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', ], ], ], ], ], 'KnowledgeBaseMeta' => [ 'type' => 'object', 'properties' => [ 'FileMetaId' => [ 'type' => 'string', ], 'FileName' => [ 'type' => 'string', ], 'FileUri' => [ 'type' => 'string', ], 'FileCreateTime' => [ 'type' => 'string', ], 'FileUpdateTime' => [ 'type' => 'string', ], 'FileSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'FileType' => [ 'type' => 'string', ], 'FileContentType' => [ 'type' => 'string', ], 'FileStatus' => [ 'type' => 'string', ], 'FileMetaData' => [ 'type' => 'string', ], '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', ], ], ], ], ], 'Runtime' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => [ 'type' => 'string', ], 'RuntimeId' => [ 'type' => 'string', ], 'RuntimeName' => [ 'type' => 'string', ], 'RuntimeType' => [ 'type' => 'string', ], 'RuntimeStatus' => [ 'type' => 'string', ], 'IdleTimeout' => [ 'type' => 'integer', 'format' => 'int32', ], 'GmtCreateTime' => [ 'type' => 'string', ], 'GmtModifiedTime' => [ 'type' => 'string', ], 'Creator' => [ 'type' => 'string', ], 'Accessibility' => [ 'type' => 'string', ], 'FlowId' => [ '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', ], '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', ], ], ], ], ], ], ], ], ], 'SupportSSEStream' => [ 'type' => 'boolean', ], 'WorkDir' => [ 'type' => 'string', ], 'Flows' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'FlowId' => [ 'type' => 'string', ], 'FlowName' => [ 'type' => 'string', ], ], ], ], 'Version' => [ 'type' => 'string', ], 'LatestVersion' => [ 'type' => 'string', ], 'MCPConfig' => [ 'type' => 'string', ], 'RuntimeLog' => [ 'type' => 'string', ], ], ], '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', ], ], ], 'Toolset' => [ 'type' => 'object', 'properties' => [ 'WorkspaceId' => [ 'type' => 'string', ], 'Accessibility' => [ 'type' => 'string', ], 'Creator' => [ 'type' => 'string', ], 'GmtCreateTime' => [ 'type' => 'string', ], 'GmtModifiedTime' => [ 'type' => 'string', ], 'ToolsetId' => [ 'type' => 'string', ], 'ToolsetName' => [ 'type' => 'string', ], 'ToolsetType' => [ 'type' => 'string', ], 'ToolsetConfig' => [ 'type' => 'string', ], 'Description' => [ 'type' => 'string', ], 'Tools' => [ 'type' => 'string', ], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ 'VpcId' => [ 'type' => 'string', ], 'VSwitchId' => [ 'type' => 'string', ], 'SecurityGroupId' => [ 'type' => 'string', ], ], ], ], ], 'apis' => [ '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, ], ], ], ], ], ], ], ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], ], ], ], ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], ], ], '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', ], ], ], ], ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], ], ], '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, ], ], ], ], ], 'endpoints' => [ [ 'regionId' => 'eu-central-1', 'endpoint' => 'pailangstudio.eu-central-1.aliyuncs.com', ], [ 'regionId' => 'cn-beijing', 'endpoint' => 'pailangstudio.cn-beijing.aliyuncs.com', ], [ 'regionId' => 'cn-wulanchabu', 'endpoint' => 'pailangstudio.cn-wulanchabu.aliyuncs.com', ], [ 'regionId' => 'cn-hangzhou', 'endpoint' => 'pailangstudio.cn-hangzhou.aliyuncs.com', ], [ 'regionId' => 'cn-shanghai', 'endpoint' => 'pailangstudio.cn-shanghai.aliyuncs.com', ], [ 'regionId' => 'cn-shenzhen', 'endpoint' => 'pailangstudio.cn-shenzhen.aliyuncs.com', ], [ 'regionId' => 'cn-hongkong', 'endpoint' => 'pailangstudio.cn-hongkong.aliyuncs.com', ], [ 'regionId' => 'ap-northeast-1', 'endpoint' => 'pailangstudio.ap-northeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-1', 'endpoint' => 'pailangstudio.ap-southeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-5', 'endpoint' => 'pailangstudio.ap-southeast-5.aliyuncs.com', ], [ 'regionId' => 'us-east-1', 'endpoint' => 'pailangstudio.us-east-1.aliyuncs.com', ], ], ];