Guardrails

Use the guardrails query to get the information of the guardrails set for the assistants set via console.

Arguments

FieldTypeDescription

after

String

before

String

frist

Int

last

Int

id

ID

Id of the guardrail.

filters

filters

filters.assistant

ID

Id of the assistant.

Available fields

FieldTypeDescription

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

assistant

Assistant!

Example

query{
  guardrails{
    edges{
      node{
        id
        name
        description
        message
        assistant{
          id
          name
        }
        updatedAt
      }
    }
  }
}

Last updated