MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / refresh

Function refresh

eval_heldout/rewoo/nodes/LLMNode.py:108–114  ·  view source on GitHub ↗
(label: str)

Source from the content-addressed store, hash-verified

106
107# Refresh traj log
108def refresh(label: str):
109 global NOW, ID, LOG, traj
110 LOG.rename(LOG.with_name(f'{NOW}_{label}.json'))
111 NOW = get_time()
112 ID = f'{TASK}_{NOW}'
113 LOG = Path('logs') / f'{MODEL}-{METHOD}' / TASK / f'{NOW}.json'
114 traj = []
115
116class LLMNode(Node):
117 def __init__(self, name="BaseLLMNode", model_name="text-davinci-003", stop=None, input_type=str, output_type=str):

Callers

nothing calls this directly

Calls 2

get_timeFunction · 0.85
PathClass · 0.50

Tested by

no test coverage detected