List example prompts
GET
/v1/yac/examples
const url = 'https://example.com/v1/yac/examples';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/yac/examplesExample prompts for the chat. A package with its own examplePrompts in
the backends config gets those — prompts are about a dataset, and the
global list below is written for HuBMAP.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response 200 Yac Examples
Array<string>
Example generated
[ "example"]No example prompts for the package, and no global list.
Media typeapplication/json
ErrorResponse
An error body. Authentication failures carry FastAPI’s detail
instead of error.
object
errors
Any of:
Array<string>
null
detail
Any of:
string
Array<object>
object
key
additional properties
any
null
Example generated
{ "error": "example", "code": "example", "errors": [ "example" ], "detail": [ {} ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}