How to include multiple tools (Code Interpreter and Retrieval) when creating assisstant?

I need to add retrieval tool to my assisstant alongside the code interpreter, but i get an error when adding the new tool object:

assistant = client.beta.assistants.create(
    name="Data Analyst",
    instructions=file_contents,
    tools=[
        {"type": "code_interpreter"},
        {"type": "retrieval"}
    ],
    model="gpt-4-1106-preview",
    file_ids=[file1.id]
)

Am I missing something?