Generating Assistants from a Function #23
Replies: 1 comment
-
@Tevyn this is great - 2 questions / follow on thoughts...
(I realise this may be on a tangent to the 100% autonomous swarm that this repo is for... but I suspect solving the two questions above would ultimately help the overall mission too :) |
Beta Was this translation helpful? Give feedback.
-
I've had some success with creating agents via function calling. This performs much better than asking an assistant to produce the JSON with all the info we need.
Function for Creating Assistants
{
"name": "create_assistant",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the new assistant"
},
"instructions": {
"type": "string",
"description": "Custom instructions for the assistant's behavior"
},
"tools": {
"type": "array",
"description": "List of tools to enable for the assistant",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"code_interpreter",
"retrieval"
]
}
},
"required": [
"type"
]
}
},
"model": {
"type": "string",
"description": "The model that the assistant should use"
}
},
"required": [
"name",
"instructions",
"tools",
"model"
]
},
"description": "Creates a new assistant with specified parameters"
}
Chat
Beta Was this translation helpful? Give feedback.
All reactions