# Define a system message to optimize search query generation
instructions = "Write a search query that will find helpful information for answering the user's question accurately. If you need more than one search query, write a list of search queries. If you decide that a search is very unlikely to find information that would be useful in constructing a response to the user, you should instead directly answer."

messages = [
    {"role": "system", "content": instructions},
    {"role": "user", "content": query},
]

model = "command-a-03-2025"