Agent Builder
0.00.31.0
retailorders
1from iksula import Agent, Tool
2from iksula.guardrails import pii_filter, cost_limit
3from .tools import lookup_inventory, create_shipment
4
5
6@Agent(
7 name="order-processor",
8 model="gpt-4o",
9 description="Process incoming orders",
10 tools=[
11 lookup_inventory,
12 create_shipment,
13 notify_customer,
14 ],
15 guardrails=[
16 pii_filter,
17 cost_limit(max_usd=0.50),
18 ],
19)
20def order_processor(
21 order: OrderInput
22) -> OrderResult:
23 """Process an order end-to-end."""
24 ...