mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Add memory run snippet tag for docs extraction (#3921)
This commit is contained in:
committed by
GitHub
Unverified
parent
f3ea872156
commit
a39fd69f76
@@ -78,6 +78,7 @@ async def main() -> None:
|
||||
)
|
||||
# </create_agent>
|
||||
|
||||
# <run_with_memory>
|
||||
session = agent.create_session()
|
||||
|
||||
# The provider doesn't know the user yet — it will ask for a name
|
||||
@@ -93,6 +94,7 @@ async def main() -> None:
|
||||
print(f"Agent: {result}\n")
|
||||
|
||||
print(f"[Memory] Stored user name: {memory.user_name}")
|
||||
# </run_with_memory>
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user