Introduction
This is a follow up on the previous PAF post. It's a slight variation on my ubiquitous Order Processing Agent & Tools
Here the orders are in a DB and a user can browse the DB table and decide which orders to process e.g. I see shedloads of orders, but decide for some reason only know to myself to just process order with the number 678.
Creating the Flow in Private Agent Factory
Let's work thru these, left to right -Chat input - the user input, such as process order 678.
Agent - this agent takes the input and extracts the orderNr, and surface it in an SQL statement e.g. SELECT * from orders WHERE orderNr = '678'.
Use that order number to create a valid SQL Select statement against the orders table -
Select * from orders where orderNr = 'extracted orderNumber'
Don't include a ; at the end of the SQL statement and ensure there are no extra invisible characters in the string you return
I join this to the SQL Query action.
Now to the order processing agent -
Here I just push the result of the SQL execution to the Order Processing Agent.Click on Playground, to test the flow -
Summa Summarum
Private Agent Factory is yet another compelling agent framework offering from ORCL. OIC based tools are the lingua franca here, so what stopping you getting start with your first agents?

No comments:
Post a Comment