https://www.youtube.com/watch?v=fMsQX6pwXkE so in that video it is provided to use config_schema but in langchain v1 there is not such parametere anymore so i tried to passsing to context_schema it worked but as i understand context_schema is not used for that please provide information on how to do that on new version
example code :
async def make_supervisor_agent(config: RunnableConfig):
configurable = config.get("configurable", {})
llm = configurable.get("model", "openai/gpt-4.1")
prompt = configurable.get(
"system_prompt", "You are a helpful assistant")
graph = create_agent(
model=load_chat_model(llm),
tools=[research_stock, execute_order],
system_prompt=prompt,
context_schema=Configuration,
state_schema=SupervisorState,
name="Supervisor Agent",
)
return graph