Skip to content

Instantly share code, notes, and snippets.

@netoxico
Forked from czue/function.js
Created February 24, 2024 03:42
Show Gist options
  • Save netoxico/7499fe929d68ccfcba99a0a7d513a1c8 to your computer and use it in GitHub Desktop.
Save netoxico/7499fe929d68ccfcba99a0a7d513a1c8 to your computer and use it in GitHub Desktop.

Revisions

  1. @czue czue created this gist Aug 25, 2023.
    21 changes: 21 additions & 0 deletions function.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    {
    "name": "answer_and_sources",
    "description": "Gets an answer and cites the relevant sources used to provide the answer.",
    "parameters": {
    "type": "object",
    "properties": {
    "answer": {
    "type": "string",
    "description": "The answer to the user's question.",
    },
    "sources": {
    "type": "array",
    "items": {
    "type": "number",
    },
    "description": "The IDs of any sources which were used in generating the answer.",
    },
    },
    "required": ["answer", "sources"],
    },
    }