MCPcopy Index your code
hub / github.com/LangGraph-GUI/LangGraph-GUI-backend / execute_step

Function execute_step

src/WorkFlow.py:56–67  ·  view source on GitHub ↗
(name:str, state: PipelineState, prompt_template: str, llm)

Source from the content-addressed store, hash-verified

54 condition: Annotated[bool, lambda x, y: y]
55
56def execute_step(name:str, state: PipelineState, prompt_template: str, llm) -> PipelineState:
57 logger(f"{name} is working...")
58 state["history"] = clip_history(state["history"])
59
60 generation = create_llm_chain(prompt_template, llm, state["history"])
61 data = json.loads(generation)
62
63 state["history"] += "\n" + json.dumps(data)
64 state["history"] = clip_history(state["history"])
65
66 logger(state["history"])
67 return state
68
69def execute_tool(name: str, state: PipelineState, prompt_template: str, llm) -> PipelineState:
70

Callers 1

build_subgraphFunction · 0.85

Calls 3

loggerFunction · 0.90
clip_historyFunction · 0.90
create_llm_chainFunction · 0.90

Tested by

no test coverage detected