Code
Hub
Trending
Following
Digest
Agents
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/InternLM/InternLM
/ execute
Method
execute
tools/pal_inference.py:185–187 ·
view source on GitHub ↗
(self, code: List[str])
Source
from the content-addressed store, hash-verified
183
return
exec_result
184
185
def
execute(self, code: List[str]):
186
self.runtime.exec_code(
"\n"
.join(code))
187
return
self.runtime.eval_code(self.answer_expr)
188
189
def
clear_history(self):
190
self.history = []
Callers
1
run
Method · 0.95
Calls
2
exec_code
Method · 0.80
eval_code
Method · 0.80
Tested by
no test coverage detected