Skip to content

Commit f5bb536

Browse files
authored
Update deep-code-research.mdx
1 parent a0077a9 commit f5bb536

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/tutorials/deep-code-research.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ def research(repo_name: Optional[str] = None, query: Optional[str] = None):
133133
if not query:
134134
query = Prompt.ask("[bold cyan]Research query[/bold cyan]")
135135

136-
result = agent.invoke({"input": query})
136+
result = agent.invoke(
137+
{"input": query},
138+
config={"configurable": {"session_id": "research"}}
139+
)
137140
console.print(Markdown(result["output"]))
138141

139142
query = None # Clear for next iteration
@@ -209,4 +212,4 @@ agent = create_agent_with_tools(
209212
tools=tools,
210213
chat_history=[SystemMessage(content=CUSTOM_PROMPT)],
211214
)
212-
```
215+
```

0 commit comments

Comments
 (0)