Guardrails
Use the guardrails query to get the information of the guardrails set for the assistants set via console.
Arguments
Field
Type
Description
id
ID
Id of the guardrail.
filters
filters
filters.assistant
ID
Id of the assistant.
Available fields
Field
Type
Description
id
ID!
Id of the guardrail.
name
String!
Name of the guardrail.
message
String!
Templated message that will be sent instead.
description
String!
Subject the assistant should not respond to.
updatedAt
DateTime!
Date and time of the last update. YYYY-MM-DDT hh:mm:ssZ
createdAt
DateTime!
Guardrail creation date. YYYY-MM-DDT hh:mm:ssZ
Example
query{
guardrails{
edges{
node{
id
name
description
message
assistant{
id
name
}
updatedAt
}
}
}
}{
"data": {
"guardrails": {
"edges": [
{
"node": {
"id": "R3VhcmRyYWlsOjEw",
"name": "Guardrail Example",
"description": "Do not promote other products other than \"Acme Inc\"",
"message": "Sorry I can't promote other products.",
"assistant": {
"id": "QXNzaXN0YW50OjMyNDk0YWZjLTQ0NzQtNDkzYS1hMWYxLTZiMTZmNjdhZmZhNQ==",
"name": "Welcome Sequence"
},
"updatedAt": "2024-06-04T15:37:53.910452+00:00"
}
}
]
}
}
}Last updated
Was this helpful?