Adding functions to assistant upon creation -not working


i’m trying to add a function I have to any new assistants I create, but it just wont add it upon creating. I’ve looked at the api documentation and just cant see where I’m going wrong.

Any help appreciated! my code is below. I’m using node.js

    const assistant = await openai.beta.assistants.create({
        name: name,
        instructions: `${description}`,
        model: model,
        tools: [
                "type": "function",
                "function": {
                    "name": "perform_bing_search",
                    "description": "Conducts a Bing search and fetches summarized content from the top results.",
                    "parameters": {
                        "type": "object",
                        "properties": {
                            "query": {
                                "type": "string",
                                "description": "The search query string to look up on Bing."
                        "required": ["query"]