In the current Pega GenAI Blueprint and Agent AI framework, routing agent actions requires wrapping logic inside Data Pages to expose them as tools. While Data Pages are the standard for data retrieval, forcing every actionable task through a Data Page adds unnecessary configuration overhead when the underlying logic is best suited for an Activity.
Context & Analogy
In modern AI Agent frameworks (like LangChain, Semantic Kernel, or native Python SDKs), a “Tool” is fundamentally a reusable function designed to perform a single, specific action. The LLM dynamically decides to invoke this tool based on the user’s prompt and instructions.
In Pega, the closest functional equivalent to a standalone Python function or execution unit is an Activity Rule. Activities are inherently designed to execute sequential logic, perform system actions, and handle complex backend processing.
Proposed Enhancement
Please provide the capability to directly tag and expose an Activity as a Tool within the Agent AI configuration, bypassing the mandatory Data Page wrapper.
While Pega best practices generally recommend minimizing Activity usage for standard UI and data fetching, Agent AI tool execution is a distinct use case. Giving developers the flexibility to map an Agent Tool directly to an Activity will:
- Streamline Development: Eliminate the need to create redundant Data Pages just to invoke a processing Activity.
- Improve Feasibility: Make it significantly easier to migrate legacy Pega logic and complex background processes into the Agent AI ecosystem.
- Align with Industry Standards: Better mirror how tools and functions are handled in mainstream AI development kits.