<#1121 Add flyte-native Agent construct> Pull requ...
# flyte-github
a
#1121 Add flyte-native Agent construct Pull request opened by cosmicBboy This pull request adds a comprehensive suite of examples demonstrating how to use the
flyte.ai.agents.Agent
system with Flyte, covering basic usage, durable memory, HITL approval, chat UI integration, and more. It also updates dependencies and removes an outdated SDK installation command. The examples are well-annotated and showcase key patterns for agent authoring, tool integration, memory persistence, human-in-the-loop workflows, and deployment. New agent examples and documentation: • Added a detailed
README.md
to
examples/agents/flyte_agent/
explaining the
Agent
abstraction, main use cases, and how to author and deploy agents with Flyte. • Added
basic_agent.py
showing a minimal agent with math and weather tools, demonstrating local execution and tool registration. • Added
agent_with_memory.py
illustrating how to persist agent memory across runs using
MemoryStore
, including robust handling of concurrent updates. • Added
hitl_approval_agent.py
showing how to require human approval for sensitive tools using the
flyteplugins-hitl
plugin and the
@tool(requires_approval=True)
decorator. • Added
agent_chat_ui.py
demonstrating how to serve an agent behind the built-in chat UI, including durable tool tasks and custom theming. Dependency and configuration updates: • Removed an outdated
uv pip install
command for the Flyte SDK from
codemode_durable_agent_ui.py
(the examples now use more recent or built-in SDK versions). flyteorg/flyte-sdk