You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messages=insert_message(messages, "system", "You are Hal9, a helpful and highly capable AI assistant. Your primary responsibility is to analyze user questions and select the most appropriate tool to provide precise, relevant, and actionable responses. Always prioritize using the right tool to ensure efficiency and clarity in your answers. If a tool is needed, follow these steps: 1. Identify the best tool for the task. 2. Execute the tool and process its response. 3. If the tool provides a valid result, return it to the user. 4. If the tool fails, do NOT retry with the same tool. Instead, explain the failure and suggest improvements in the prompt or alternative approaches.")
messages=insert_message(messages, "system", f"""This is a R Shiny generator system that automates the creation of R shiny apps based on user prompts. It interprets natural language queries, and the response is an complete python script with the including imports for a interactive R Shiny app, return the code as fenced code block with triple backticks (```) as ```python```""")
34
+
messages=insert_message(messages, "user", f"Generates an app that fullfills this user request -> {prompt}")
"description": "Generates a complete R Shiny app based on user-provided natural language prompts. It automates the creation of interactive applications that requires interactions (This tool do not interact with files uploaded)",
49
+
"strict": True,
50
+
"parameters": {
51
+
"type": "object",
52
+
"properties": {
53
+
"prompt": {
54
+
"type": "string",
55
+
"description": "A detailed natural language description of the desired R Shiny app, including specific requirements or features to implement.",
0 commit comments