class_docstr: (Experimental) A MathChat agent that can handle math problems.
docstr: Run one wolfram query and return the output.
  
  Args:
      query: string of the query.
  
  Returns:
      output: string with the output of the query.
      is_success: boolean indicating whether the query was successful.
docstr_tok: ["Run","one","wolfram","query","and","return","the","output",".","Args",":","query",":","string","of","the","query",".","Returns",":","output",":","string","with","the","output","of","the","query",".","is_success",":","boolean","indicating","whether","the","query","was","successful","."]
code: def execute_one_wolfram_query(self, query: str):
      """Run one wolfram query and return the output.
  
      Args:
          query: string of the query.
  
      Returns:
          output: string with the output of the query.
          is_success: boolean indicating whether the query was successful.
      """
      # wolfram query handler
      wolfram = WolframAlphaAPIWrapper()
      output, is_success = wolfram.run(query)
      if output == "":
          output = "Error: The wolfram query is invalid."
          is_success = False
      return output, is_success
  
imports: import re
  import os
  from pydantic import BaseModel, Extra, root_validator
  from typing import Any, Callable, Dict, List, Optional, Union, Tuple
  from time import sleep
  from autogen._pydantic import PYDANTIC_V1
  from autogen.agentchat import Agent, UserProxyAgent
  from autogen.code_utils import UNKNOWN, extract_code, execute_code, infer_lang
  from autogen.math_utils import get_answer
label_desc: Use image node_id 5 for calling the MathUserProxyAgent obj's underlying member method code with example usage: obj.execute_one_wolfram_query(query) and returns: output,  is_success