Skip to content

Commit

Permalink
Merge pull request #26 from reworkd/fix-none
Browse files Browse the repository at this point in the history
Fix none
  • Loading branch information
asim-shrestha authored Nov 28, 2023
2 parents 6dec68a + dcc2cc9 commit 19aad6d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 73 deletions.
3 changes: 0 additions & 3 deletions bananalyzer/data/fetch_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class ContactSchema(BaseModel):
name: str
website: str = Field(
description="An external link to the website if the website provides a link"
)
phone: str
fax: str = Field(description="Fax number of the location")
address: str
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bananalyzer"
version = "0.6.3"
version = "0.6.4"

description = "Open source AI Agent evaluation framework for web tasks 🐒🍌"
authors = ["asim-shrestha <[email protected]>"]
Expand Down
71 changes: 22 additions & 49 deletions static/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@
"type": "json_match",
"expected": {
"name": "Atlanta Ophthalmology Associates",
"website": "https://aoaeye.com/",
"phone": "404-252-1194",
"fax": "404-252-1196",
"address": "5730 Glenridge Drive\nSuite 120\nAtlanta, GA 30328",
Expand All @@ -547,7 +546,6 @@
"type": "json_match",
"expected": {
"name": "Baptist Health ENT Partners",
"website": null,
"phone": "334-747-2273",
"fax": null,
"address": "2055 East South Blvd; Suite 908\n\nMontgomery, Alabama 36116",
Expand All @@ -569,7 +567,6 @@
"type": "json_match",
"expected": {
"name": "MyMichigan Medical Center Clare",
"website": null,
"phone": "(989) 633-5252",
"fax": null,
"address": "703 N. McEwan Street\nClare, MI 48617",
Expand All @@ -591,7 +588,6 @@
"type": "json_match",
"expected": {
"name": "Montgomery Building",
"website": null,
"phone": "513-936-4510",
"fax": null,
"address": "9275 Montgomery Road\nCincinnati, OH 45242",
Expand All @@ -613,7 +609,6 @@
"type": "json_match",
"expected": {
"name": "UofL Health \u2013 Jewish Hospital Outpatient Care Center",
"website": null,
"phone": "502-588-7690",
"fax": "502-540-1414",
"address": "225 Abraham Flexner Way, Suite 502\nLouisville, KY 40202",
Expand Down Expand Up @@ -2152,8 +2147,7 @@
"address": "160 Falmouth Road Mashpee MA 02649",
"phone": "774-361-8700",
"fax": "774-521-3628",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2174,8 +2168,7 @@
"address": "1690 Harrison Street Batesville, AR 72501",
"phone": "(870) 793-2371",
"fax": "(870) 793-7585",
"type": null,
"website": "https://batesvillebones.org/"
"type": null
}
}
]
Expand All @@ -2196,8 +2189,7 @@
"address": "420 Wilkinson Dr, Dyersburg, TN 38024, USA",
"phone": "(731) 288-3960",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2218,8 +2210,7 @@
"address": "500 Medical Park, 2nd Floor Wheeling, WV 26003",
"phone": "(304) 238-5750",
"fax": "(304) 797-6186",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2240,8 +2231,7 @@
"address": "289 North Avenue, Washington, PA 15301",
"phone": "(724) 942-6100",
"fax": "(724) 942-6104",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2262,8 +2252,7 @@
"address": "10010 Falls of Neuse Road, Suite 203 Raleigh, North Carolina 27614",
"phone": "919-235-6440",
"fax": "919-350-7093",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2284,8 +2273,7 @@
"address": "40 Stirling Road, Suite 101 Watchung, NJ 07069",
"phone": "908-769-8000",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2306,8 +2294,7 @@
"address": "740 Bragaw Lane Chocowinity, NC 27817",
"phone": "(252) 946-9562",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2328,8 +2315,7 @@
"address": "615 Douglas Street, Suite 500 Durham, NC 27705",
"phone": "919-767-0202",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2350,8 +2336,7 @@
"address": "3470 Mayland Court Richmond,VA 23233",
"phone": "(804) 527-4540",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2372,8 +2357,7 @@
"address": "919 Murfreesboro Road, Franklin, TN 37064",
"phone": "(615) 936-5000",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2394,8 +2378,7 @@
"address": "125 Memorial Drive Luray, VA 22835",
"phone": "540-743-2282",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2416,8 +2399,7 @@
"address": "Main Hospital, 1550 N 115th St., Seattle, WA 98133",
"phone": "877.694.4677",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2438,8 +2420,7 @@
"address": "250 26th Street, Suite 120 / Prairie du Sac, WI 53578",
"phone": "(608) 643-6060",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2460,8 +2441,7 @@
"address": "1015 Spring Creek Parkway Zion Crossroads, VA 22942",
"phone": "434.924.0000",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2482,8 +2462,7 @@
"address": "2451 University Hospital Dr. Mobile, AL 36617",
"phone": "(251) 471-7160",
"fax": "(251) 471-7019",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2504,8 +2483,7 @@
"address": "UofL Health - Jackson Street Outpatient Center 550 S. Jackson Street, 3rd Floor Louisville, KY 40202",
"phone": "502-561-5687",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2526,8 +2504,7 @@
"address": "800 Spruce Street Philadelphia, PA 19107",
"phone": "215-829-3000",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2548,8 +2525,7 @@
"address": "10700 Nall Avenue Level 3 Overland Park, KS 66211",
"phone": "913-588-1227",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2570,8 +2546,7 @@
"address": "99 E. 86th Ave. Suite C Merrillville, IN 46410",
"phone": "773-702-6169",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2592,8 +2567,7 @@
"address": "St. Luke's Building A 1012 East Second Street 4th Floor Duluth, MN 55805",
"phone": "218.249.7860",
"fax": "218.249.6370",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -2614,8 +2588,7 @@
"address": "555 St. Joseph's Boulevard",
"phone": "607-733-6541",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand Down
30 changes: 10 additions & 20 deletions static/test_examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@
"address": "2101 Charlotte Street Suite 350 Kansas City, MO, 64108",
"phone": "816.404.0500",
"fax": "816.404.9901",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -501,8 +500,7 @@
"address": "233 Vold Drive Waterloo, IA 50703",
"phone": "319-235-5090",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -523,8 +521,7 @@
"address": "33 Mitchell Ave. Suite 102 Binghamton, NY 13903",
"phone": "607-762-3281",
"fax": "607-762-3295",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -545,8 +542,7 @@
"address": "506 NC-69 Hayesville, NC 28904",
"phone": "828-389-2273",
"fax": "828-389-8291",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -567,8 +563,7 @@
"address": "960 Rocket Way Gardendale, AL 35071",
"phone": "205.631.3452",
"fax": null,
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -589,8 +584,7 @@
"address": "100 Kings Way E Ste C Sewell, NJ 08080-2238",
"phone": "(856)582-0644",
"fax": "(856)582-0622",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -611,8 +605,7 @@
"address": "4301 Dick Pond Road Myrtle Beach, SC 29588",
"phone": "843-652-8100",
"fax": "843-652-8122",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -633,8 +626,7 @@
"address": "350 John Muir Parkway Suite 160 Brentwood, CA, 94513",
"phone": "(510) 204-1920",
"fax": "(925) 513-1594",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -655,8 +647,7 @@
"address": "St. Luke's Health Center - Bath 6651 Silver Crest Road Suite 103 Bath, PA 18014",
"phone": "484-526-7360",
"fax": "833-822-5223",
"type": null,
"website": null
"type": null
}
}
]
Expand All @@ -677,8 +668,7 @@
"address": "2550 Addison Avenue E. Suite C Twin Falls, ID 83301",
"phone": "(208) 814-7770",
"fax": "(208) 814-7799",
"type": null,
"website": null
"type": null
}
}
]
Expand Down

0 comments on commit 19aad6d

Please sign in to comment.