responses={{"200":{"description":"The dataset object.","content":{"application/json":{"schema":{"properties":{"identifier":{"type":"string","title":"Identifier","description":"Unique identifier for this resource in llama stack"},"provider_resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique identifier for this resource in the provider"},"provider_id":{"type":"string","title":"Provider Id","description":"ID of the provider that owns this resource"},"type":{"type":"string","const":"dataset","title":"Type","description":"Type of resource, always 'dataset' for datasets","default":"dataset"},"purpose":{"description":"Purpose of the dataset indicating its intended use","type":"string","enum":["post-training/messages","eval/question-answer","eval/messages-answer"],"title":"DatasetPurpose"},"source":{"oneOf":[{"title":"URIDataSource","properties":{"type":{"type":"string","const":"uri","title":"Type","description":"The type of data source.","default":"uri"},"uri":{"type":"string","title":"Uri","description":"The dataset can be obtained from a URI. E.g. \"https://mywebsite.com/mydata.jsonl\", \"lsfs://mydata.jsonl\", \"data:csv;base64,{base64_content}\""}},"type":"object","required":["uri"],"description":"A dataset that can be obtained from a URI."},{"title":"RowsDataSource","properties":{"type":{"type":"string","const":"rows","title":"Type","description":"The type of data source.","default":"rows"},"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows","description":"The dataset is stored in rows. E.g. [{\"messages\": [{\"role\": \"user\", \"content\": \"Hello, world!\"}, {\"role\": \"assistant\", \"content\": \"Hello, world!\"}]}]"}},"type":"object","required":["rows"],"description":"A dataset stored in rows."}],"title":"URIDataSource | RowsDataSource","description":"Data source configuration for the dataset","discriminator":{"propertyName":"type","mapping":{"rows":{"properties":{"type":{"type":"string","const":"rows","title":"Type","description":"The type of data source.","default":"rows"},"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows","description":"The dataset is stored in rows. E.g. [{\"messages\": [{\"role\": \"user\", \"content\": \"Hello, world!\"}, {\"role\": \"assistant\", \"content\": \"Hello, world!\"}]}]"}},"type":"object","required":["rows"],"title":"RowsDataSource","description":"A dataset stored in rows."},"uri":{"properties":{"type":{"type":"string","const":"uri","title":"Type","description":"The type of data source.","default":"uri"},"uri":{"type":"string","title":"Uri","description":"The dataset can be obtained from a URI. E.g. \"https://mywebsite.com/mydata.jsonl\", \"lsfs://mydata.jsonl\", \"data:csv;base64,{base64_content}\""}},"type":"object","required":["uri"],"title":"URIDataSource","description":"A dataset that can be obtained from a URI."}}}},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Any additional metadata for this dataset"}},"type":"object","required":["identifier","provider_id","purpose","source"],"title":"Dataset","description":"Dataset resource for storing and accessing training or evaluation data."}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"description":"Error response from the API. Roughly follows RFC 7807.","properties":{"status":{"title":"Status","type":"integer"},"title":{"title":"Title","type":"string"},"detail":{"title":"Detail","type":"string"},"instance":{"anyOf":[{"type":"string"},{"type":"null"}],"nullable":true}},"required":["status","title","detail"],"title":"Error","type":"object"},"example":{"status":400,"title":"Bad Request","detail":"The request was invalid or malformed"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"description":"Error response from the API. Roughly follows RFC 7807.","properties":{"status":{"title":"Status","type":"integer"},"title":{"title":"Title","type":"string"},"detail":{"title":"Detail","type":"string"},"instance":{"anyOf":[{"type":"string"},{"type":"null"}],"nullable":true}},"required":["status","title","detail"],"title":"Error","type":"object"},"example":{"status":429,"title":"Too Many Requests","detail":"You have exceeded the rate limit. Please try again later."}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"description":"Error response from the API. Roughly follows RFC 7807.","properties":{"status":{"title":"Status","type":"integer"},"title":{"title":"Title","type":"string"},"detail":{"title":"Detail","type":"string"},"instance":{"anyOf":[{"type":"string"},{"type":"null"}],"nullable":true}},"required":["status","title","detail"],"title":"Error","type":"object"},"example":{"status":500,"title":"Internal Server Error","detail":"An unexpected error occurred"}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"description":"Error response from the API. Roughly follows RFC 7807.","properties":{"status":{"title":"Status","type":"integer"},"title":{"title":"Title","type":"string"},"detail":{"title":"Detail","type":"string"},"instance":{"anyOf":[{"type":"string"},{"type":"null"}],"nullable":true}},"required":["status","title","detail"],"title":"Error","type":"object"}}}}}}
0 commit comments