"2024 Trends and Predictions"

"2024 Trends and Predictions" · Actions GPT

GPT functions/actions

GPT functions/actions used by AI Assistant

  • POST /breeb/queryBased on user prompt, you query the Breeb to retrieve text snippets to improve your answer, together with some instructions.
  • POST /breeb/reviewCalled to record user review message (such as a like or dislike or comment), linked to its last question made to the Breeb.
  • POST /breeb/reportCalled by user or you to report an issue (technical problems, harmful content, or copyright issues)
Schéma original API
{
    "openapi": "3.0.1",
    "info": {
      "title": "GPT functions/actions",
      "description": "GPT functions/actions used by AI Assistant",
      "version": "v1"
    },
    "servers": [
      {
        "url": "https://breebs.promptbreeders.com"
      }
    ],
    "paths": {
      "/breeb/query": {
        "post": {
          "summary": "Based on user prompt, you query the Breeb to retrieve text snippets to improve your answer, together with some instructions.",
          "operationId": "query",
          "x-openai-isConsequential": false,
          "requestBody": {
            "description": "infos passed by to query the Breeb.",
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "assistant_name":{
                        "type": "string",
                        "description": "The name of AI Assistant/GPT"
                      },
                    "llm_name":{
                      "type": "string",
                      "description": "The name of Langage Model in use"
                    },                   
                    "breeb_key": {
                      "type": "string",
                      "description": "The breeb_key you have in your instructions"
                    },
                    "prompt": {
                      "type": "string",
                      "description": "The prompt which triggered the query, as typed by user, truncated after 20 words."
                    },
                    "query": {
                      "type": "string",
                      "description": "Based on user prompt, the information you need to get from the Breeb to improve your answer."
                    },
                    "search_keywords": {
                      "type": "string",
                      "description": "Based on query, a string made of a list of 5 keywords or keywords combination, comma separated, you expect to find in the text snippets retrieved from the Breeb."
                    },
                    "hypothetical_answer": {
                      "type": "string",
                      "description": "Invent an hypothetical phrase (truncate after 15 words) that could come back from the Breeb to help you answer."
                    },
                    "query_strategy": {
                      "type": "string",
                      "description": "Defines how you want to query the Breeb  - many_small : Many short snippets if you think info is scattered - few_big : Few long extracts if you think info is localized or need long excerpts  - balanced : average snippet length and number",
                      "enum": [
                        "many_small",
                        "few_big",
                        "balanced"
                      ]
                    }
                  },
                  "required": [
                    "assistant_name",
                    "llm_name",
                    "breeb_key",
                    "prompt",
                    "query",
                    "search_keywords",
                    "hypothetical_answer",
                    "query_strategy"
                  ]
                }
              }
            }
          },
          "responses": {
            "200": {
              "description": "Data returned from Breeb, with additional instructions for you"
            },
            "400": {
              "description": "Issue with Breeb Query. You inform user about the issue and follow instructions of the response if any."
            }
          }
        }
      },

      "/breeb/review": {
        "post": {
          "summary": "Called to record user review message (such as a like or dislike or comment), linked to its last question made to the Breeb.",
          "operationId": "review",
          "x-openai-isConsequential": false,
          "requestBody": {
            "description": "infos passed to function to record a review.",
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "last_answer_ref": {
                      "type": "string",
                      "description": "The 'last_answer_ref' value of the last answer you made."
                    },
                    "review_message": {
                      "type": "string",
                      "description": "The user review message."
                    },
                    "review_mood": {
                      "type": "string",
                      "description": "The mood of the 'review_message' (positive, negative, neutral)",
                      "enum": [
                        "positive",
                        "negative",
                        "neutral"
                      ]
                    },
                    "review_category": {
                      "type": "string",
                      "description": "The category of 'review_message', must be one of the enum",
                      "enum": [
                        "relevant_content",
                        "uptodate_content",
                        "insightful_answer",
                        "other_like_category",
                        "irrelevant_content",
                        "misinformation_content",
                        "outdated_content",
                        "other_dislike_category"
                      ]
                    },
                    "is_sensitive": {
                      "type": "string",
                      "description": "Set to true if content of 'review_message' is sensitive (ie contains harmful, NSFW, personal or confidential informations). Set to false otherwise. Value must be one of the enum",
                      "enum": [
                        true,
                        false
                      ]
                    }
                  },
                  "required": [
                    "last_answer_ref",
                    "review_message",
                    "review_mood",
                    "review_category",
                    "is_sensitive"
                  ]
                }
              }
            }
          },
          "responses": {
            "200": {
              "description": "Review succesfully recorded"
            },
            "400": {
              "description": "Issue while recording review message. You inform user about the issue and follow instructions of the response if any."
            }
          }
        }
      },
      "/breeb/report": {
        "post": {
          "summary": "Called by user or you to report an issue (technical problems, harmful content, or copyright issues)",
          "operationId": "report",
          "x-openai-isConsequential": false,
          "requestBody": {
            "description": "infos passed to function to record a report.",
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "last_answer_ref": {
                      "type": "string",
                      "description": "The 'last_answer_ref' value of the last answer you made."
                    },
                    "report_description": {
                      "type": "string",
                      "description": "Explanation of the report."
                    },
                    "report_category": {
                      "type": "string",
                      "description": "The category of 'report_description', written by you (must be one of the enum)",
                      "enum": [
                        "copyright_issue",
                        "technical_issue",
                        "harmful_content"
                      ]
                    },
                    "is_sensitive": {
                      "type": "string",
                      "description": "Set to true if content of 'report_description' is sensitive (ie contains harmful, NSFW, personal or confidential informations). Set to false otherwise. Value must be one of the enum",
                      "enum": [
                        true,
                        false
                      ]
                    }
                  },
                  "required": [
                    "last_answer_ref",
                    "report_description",
                    "report_category",
                    "is_sensitive"
                  ]
                }
              }
            }
          },
          "responses": {
            "200": {
              "description": "Report recorded by the Breeb"
            },
            "400": {
              "description": "Issue while recording report. You inform user about the issue and follow instructions of the response if any."
            }
          }
        }
      }
    }
  }