Last active
March 28, 2024 17:02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"model": "gpt-4", | |
"tool_choice": { | |
"type": "function", | |
"function": {"name": "query_enrichment" } | |
}, | |
"messages": [ | |
{"role": "user", "content": "Write a newsletter." } | |
], | |
"tools": [ | |
{ | |
"type": "function", | |
"function": { | |
"name": "query_enrichment", | |
"description": "Augment user queries with semantic tags for classification.", | |
"parameters": { | |
"type": "object", | |
"properties": { | |
"command": { | |
"type": "boolean", | |
"description": "True for direct AI commands. Else, false." | |
}, | |
"memory": { | |
"type": "string", | |
"description": "Refer to 'memory' for queries about user or AI. | |
context.", | |
"enum": [ | |
"user", | |
"Alice" | |
] | |
}, | |
"tags": { | |
"type": "array", | |
"description": "Semantic tags enriching queries for search | |
purposes.", | |
"items": { | |
"type": "string" | |
} | |
} | |
}, | |
"required": [ | |
"command", | |
"tags" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment