MCPcopy Create free account
hub / github.com/Alibaba-NLP/DeepResearch / call

Function call

WebAgent/WebWalker/src/rag_system.py:155–167  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

153 MAX_WORKERS = 10
154
155 def call(data):
156 try:
157 completion = client.bot_chat.completions.create(
158 model=ARK_MODEL,
159 messages=[
160 {"role": "system", "content": "你是豆包,是由字节跳动开发的 AI 人工智能助手"},
161 {"role": "user", "content": data["question"]}
162 ]
163 )
164 return completion.choices[0].message.content
165 except Exception as e:
166 print(f"Error: {e}")
167 return
168
169 if not os.path.exists(output_path):
170 open(output_path, "w").close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected