akiko19191 commited on
Commit
a9f68d2
·
verified ·
1 Parent(s): c3e4fea

Update tests.py

Browse files
Files changed (1) hide show
  1. tests.py +10 -0
tests.py CHANGED
@@ -127,6 +127,16 @@ def run(cmd, timeout_sec,forever_cmd):
127
  break
128
  return output
129
 
 
 
 
 
 
 
 
 
 
 
130
  @mcp.tool()
131
  def analyse_audio(audiopath,query) -> dict:
132
  """Ask another AI model about audios.The AI model can listen to the audio and give answers.Eg-query:Generate detailed minutes of meeting from the audio clip,audiopath='/app/code_interpreter/<audioname>'.Note:The audios are automatically present in the /app/code_interpreter directory."""
 
127
  break
128
  return output
129
 
130
+ @mcp.prompt()
131
+ def ask_about_topic(topic: str) -> str:
132
+ """Generates a user message asking for an explanation of a topic."""
133
+ return f"Can you please explain the concept of '{topic}'?"
134
+
135
+ @mcp.resource("config://app")
136
+ def get_config() -> str:
137
+ """Static configuration data"""
138
+ return "App configuration here"
139
+
140
  @mcp.tool()
141
  def analyse_audio(audiopath,query) -> dict:
142
  """Ask another AI model about audios.The AI model can listen to the audio and give answers.Eg-query:Generate detailed minutes of meeting from the audio clip,audiopath='/app/code_interpreter/<audioname>'.Note:The audios are automatically present in the /app/code_interpreter directory."""