def my_python_tool()

in promptflow/code/append_site_to_search_query.py [0:0]


def my_python_tool(question: dict, organization_urls: list, conn:CustomConnection) -> str:
  result = "The question is irrelevant or out of scope"
  query = json.loads(question)
  if query["relevance"]:
    result = web_search(conn, organization_urls, query["question"])
  return result