MCPcopy Create free account
hub / github.com/Chainlit/cookbook / call_model

Function call_model

langgraph-memory/app.py:18–20  ·  view source on GitHub ↗
(state: MessagesState)

Source from the content-addressed store, hash-verified

16
17
18def call_model(state: MessagesState):
19 response = model.invoke(state["messages"])
20 return {"messages": response}
21
22
23workflow.add_edge(START, "model")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected