{"version":1,"avgBodyLen":89.26530612244898,"df":[["execution",24],["match",28],["py",98],["evaluation",53],["standalone",1],["scoring",1],["s2",5],["sql",26],["tasks",6],["headline",1],["entry",6],["point",1],["func",3],["compare",4],["results",11],["inputs",1],["column",8],["major",1],["dicts",1],["col",7],["name",18],["values",12],["shape",2],["sqlite",21],["executor",12],["returns",4],["once",1],["transpose",1],["its",1],["row",13],["output",12],["behavior",1],["preserved",1],["digit",1],["float",24],["rounding",1],["number",23],["digits",19],["considered",17],["string",3],["cells",4],["case",3],["insensitively",1],["after",3],["strip",33],["no",8],["json",34],["leaf",2],["strings",2],["same",1],["rule",1],["array",2],["by",16],["key",11],["agnostic",2],["primitive",6],["value",22],["coverage",2],["smaller",2],["object",8],["must",3],["each",5],["distinct",2],["larger",2],["so",4],["compact",1],["gold",6],["summaries",1],["verbose",1],["agent",13],["without",1],["hand",1],["written",1],["field",3],["aliases",1],["hungarian",2],["algorithm",2],["matching",3],["via",4],["scipy",2],["optimize",2],["linear",2],["sum",3],["assignment",2],["loose",2],["mode",5],["keeps",1],["75",2],["precision",4],["recall",4],["threshold",2],["boost",2],["one",12],["vs",4],["many",4],["tolerance",2],["order",14],["queries",3],["strict",5],["disables",2],["both",3],["ordered",4],["uses",2],["sqlglot",2],["tolerates",1],["parse",16],["failures",2],["falling",1],["back",1],["substring",1],["scan",1],["from",20],["future",15],["import",16],["annotations",14],["copy",3],["deepcopy",3],["typing",14],["any",59],["dict",46],["list",43],["tuple",11],["numpy",1],["as",26],["np",4],["optimizer",1],["scope",2],["traverse",2],["max",21],["extra",8],["columns",11],["missing",10],["score",5],["wrong",2],["percentage",2],["atol",3],["equal",12],["def",84],["left",3],["right",3],["int",32],["bool",21],["try",12],["if",75],["not",48],["none",36],["return",73],["parsed",3],["check",4],["top",1],["str",66],["all",9],["rows",18],["against",1],["first",2],["dataframe",5],["false",26],["truncated",3],["vals",4],["items",4],["similarity",4],["matters",9],["true",23],["len",17],["zip",4],["unmatched",2],["enumerate",13],["pop",1],["break",3],["else",21],["compute",2],["eval",9],["pred",4],["metric",6],["distances",1],["empty",12],["dtype",2],["double",1],["pv",1],["gv",1],["ind",1],["cost",1],["matrix",1],["min",4],["round",4],["overlap",2],["denotation",2],["ignore",4],["per",2],["pandas",1],["testing",1],["assert",1],["series",1],["exact",1],["percent",1],["upstream",1],["swapped",1],["convention",1],["matches",7],["cols",4],["longer",1],["penalize",1],["s2sql",10],["judge",8],["pd",1],["df",2],["data",2],["frame",1],["temp",1],["deep",4],["sort",1],["reset",1],["index",3],["drop",2],["notna",1],["api",5],["types",3],["datetime64",1],["astype",1],["except",11],["exception",6],["pass",4],["names",7],["assertion",1],["error",36],["type",19],["attribute",1],["tolist",1],["num",2],["numeric",3],["errors",3],["coerce",1],["isnull",1],["continue",12],["isclose",2],["rtol",2],["1e",2],["nan",2],["abs",1],["dropna",1],["100",1],["total",3],["denom",1],["objects",2],["compatible",3],["compatibility",1],["isinstance",20],["cover",2],["normalize",3],["val",2],["insensitive",1],["cell",2],["count",11],["casefold",1],["obj",1],["collect",1],["primitives",1],["structure",1],["out",2],["extend",2],["item",3],["every",1],["sv",1],["matched",3],["lv",1],["floats",2],["place",1],["decimal",2],["places",2],["ix",1],["sequences",1],["seq1",1],["seq2",1],["el",1],["remove",1],["text",15],["loads",10],["jsondecode",2],["result",9],["v2",6],["mirrors",1],["aggregate",1],["formula",1],["greatest",1],["then",1],["end",2],["useful",1],["downstream",1],["needs",4],["raw",6],["instead",1],["bonus",1],["seshkey",1],["block",6],["controls",1],["rounded",1],["before",1],["comparison",1],["default",6],["met",1],["elif",2],["outermost",1],["select",3],["carries",2],["scopes",1],["lower",7],["find",1],["exp",1],["parent",6],["llm",6],["usr",5],["bin",5],["env",5],["python3",5],["run",13],["public",9],["answer",13],["over",3],["jsonl",13],["file",8],["argparse",10],["os",5],["re",6],["pathlib",9],["path",33],["iterator",6],["openai",9],["open",17],["ai",7],["prompt",3],["resolve",14],["prompts",1],["txt",1],["read",11],["encoding",13],["utf",15],["main",10],["iter",7],["handle",11],["line",9],["raise",17],["expected",7],["yield",3],["client",2],["model",3],["record",11],["question",3],["response",4],["correct",3],["format",8],["chat",2],["completions",2],["create",3],["messages",9],["role",6],["user",4],["content",7],["temperature",1],["tokens",1],["2048",1],["choices",1],["message",7],["verdict",4],["args",10],["system",1],["exit",1],["kwargs",1],["environ",3],["base",4],["url",8],["expanduser",11],["mkdir",4],["parents",5],["exist",4],["ok",11],["input",7],["judged",1],["write",8],["dumps",11],["ensure",10],["ascii",10],["accuracy",2],["print",5],["records",8],["3f",3],["wrote",3],["namespace",4],["parser",5],["argument",7],["description",11],["doc",5],["add",8],["required",10],["help",2],["optional",2],["auditable",1],["fields",6],["emitted",1],["replace",4],["search",11],["yes",1],["ignorecase",2],["reason",2],["reasoning",1],["ncorrect",1],["nconfidence",1],["dotall",3],["extracted",2],["final",14],["nreasoning",1],["confidence",1],["group",2],["evaluate",3],["predictions",5],["only",8],["extract",11],["source",9],["execute",9],["readonly",5],["db",19],["root",13],["template",4],["timeout",11],["instance",2],["id",16],["kind",1],["exec",1],["sensitive",1],["table",3],["extraction",2],["failed",8],["database",9],["exc",6],["found",6],["meta",6],["columnar",2],["update",5],["mismatch",2],["evaluated",1],["below",1],["replaced",1],["10",4],["000",4],["120",2],["action",1],["store",1],["explicit",1],["together",1],["append",5],["canonical",1],["produced",1],["trial",1],["tries",1],["last",6],["fenced",3],["generic",2],["successful",2],["tool",14],["call",6],["native",1],["trajectory",1],["skips",1],["calls",2],["whose",1],["paired",2],["marked",1],["two",3],["common",2],["formats",1],["supported",1],["assistant",3],["function",3],["arguments",3],["keyed",1],["anthropic",4],["blocks",1],["carrying",1],["iterable",2],["label",3],["vocabulary",1],["returned",1],["alongside",1],["tid",2],["pattern",1],["compile",3],["rf",1],["finditer",1],["reversed",2],["inp",1],["tc",1],["fn",4],["cid",2],["msg",2],["doesn",1],["mark",1],["structurally",1],["treat",2],["rejected",2],["prefixes",3],["loop",3],["encodes",1],["class",1],["pair",1],["defensive",1],["usually",1],["plain",1],["but",1],["be",4],["robust",1],["version",1],["emits",1],["structured",1],["join",8],["head",2],["lstrip",2],["startswith",3],["build",11],["shaped",1],["walk",2],["msgs",1],["explains",1],["came",1],["means",1],["nothing",1],["was",1],["extractable",1],["caller",1],["should",5],["report",1],["query",12],["statement",1],["guard",2],["layers",1],["judges",1],["need",4],["directly",1],["wraps",1],["pretty",1],["printed",1],["observation",1],["connections",1],["opened",1],["uri",2],["ro",3],["even",1],["token",4],["misses",1],["exotic",1],["refuses",1],["mutate",1],["sqlite3",4],["time",3],["pragma",2],["explain",2],["leading",3],["comment",2],["clear",2],["conn",3],["connection",3],["progress",2],["handler",3],["install",2],["abort",1],["long",1],["running",1],["deadline",3],["monotonic",2],["reject",2],["blacklist",1],["plus",2],["opener",1],["keyword",1],["whitelist",1],["safe",1],["catches",1],["paths",1],["insert",2],["etc",1],["regex",1],["enforces",1],["opening",1],["stripping",1],["comments",2],["guarantee",1],["upper",1],["banned",1],["delete",1],["alter",1],["attach",2],["detach",1],["vacuum",1],["disallowed",1],["allowed",1],["iteratively",1],["whitespace",1],["while",1],["500",3],["lists",1],["exceeded",1],["err",1],["posix",1],["connect",1],["factory",1],["cur",1],["fetch",7],["detect",1],["truncation",1],["cleanly",1],["fetched",1],["fetchmany",1],["interrupted",1],["limit",1],["timed",1],["finally",1],["close",1],["keys",1],["chars",6],["2000",1],["formatted",1],["metadata",1],["fixed",2],["width",1],["header",3],["quickly",1],["see",1],["big",1],["clipped",1],["colnames",1],["widths",2],["tr",1],["60",1],["fmt",2],["ljust",2],["sep",1],["body",2],["summary",1],["more",1],["existed",1],["dataset",9],["releases",9],["preprocess",18],["complete",1],["preview",2],["release",2],["files",2],["v1",5],["sparse",1],["patches",1],["hashlib",2],["task",9],["examples",1],["parallel",2],["sql2s",1],["hint",2],["counts",1],["relative",1],["load",6],["merged",2],["patched",1],["overlay",2],["overrides",1],["hybrid",7],["ds",1],["ids",3],["contains",2],["duplicate",4],["manifest",2],["full",4],["sha256",2],["overlaid",1],["indent",5],["seen",3],["prefix",2],["patch",1],["unknown",2],["sorted",2],["absent",1],["identical",1],["unchanged",1],["digest",1],["rb",1],["chunk",1],["lambda",1],["1024",1],["hexdigest",1],["prepare",5],["removing",1],["construction",1],["grading",1],["valid",2],["location",4],["invalid",2],["validate",4],["research",3],["unique",1],["prediction",2],["unexpected",1],["non",1],["init",4],["tools",28],["contract",1],["these",1],["capability",1],["shapes",1],["expose",1],["they",1],["production",1],["wire",1],["them",1],["into",1],["your",2],["own",2],["framework",1],["provider",1],["callable",12],["make",7],["knowledge",11],["web",11],["schema",3],["schemas",3],["toolset",1],["assemble",1],["callables",2],["included",1],["wrap",1],["parameters",1],["stop",1],["external",3],["backed",1],["kb",3],["functools",1],["lru",1],["cache",1],["catalog",3],["12",1],["maxsize",1],["64",1],["isalnum",1],["entries",5],["eid",1],["title",4],["isdigit",1],["suffix",1],["three",1],["definition",3],["definitions",2],["notice",2],["returning",2],["titles",2],["you",3],["sys",1],["configured",2],["reference",1],["swap",1],["renderer",1],["html",2],["urllib",4],["request",4],["tag",2],["script",1],["style",1],["ws",2],["20",2],["address",1],["headers",2],["method",2],["urlopen",2],["30",2],["decode",2],["400",1],["unescape",1],["sub",1],["page",1],["backend",6],["hits",4],["lines",1],["hit",2],["omitted",1],["tavily",2],["present",1],["requires",1],["runtime",1],["payload",1],["include",1],["encode",1],["https",1],["com",1],["application",1],["post",1],["snippet",1]],"docCount":98,"docs":[{"id":"evaluation/execution_match.py","name":[["execution",1],["match",1],["py",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["standalone",1],["execution",2],["match",3],["scoring",1],["s2",2],["sql",3],["tasks",1],["headline",1],["entry",1],["point",1],["func",1],["compare",3],["results",1],["inputs",1],["column",2],["major",2],["dicts",1],["col",1],["name",1],["values",2],["shape",1],["sqlite",1],["executor",1],["returns",1],["once",1],["transpose",1],["its",1],["row",2],["output",1],["behavior",1],["preserved",1],["digit",1],["float",1],["rounding",1],["number",5],["digits",3],["considered",3],["string",1],["cells",2],["case",1],["insensitively",1],["after",1],["strip",1],["no",2],["json",4],["leaf",2],["strings",1],["same",1],["rule",1],["array",1],["by",4],["key",1],["agnostic",1],["primitive",1],["value",2],["coverage",1],["smaller",1],["object",2],["must",1],["each",1],["distinct",1],["larger",1],["so",1],["compact",1],["gold",1],["summaries",1],["verbose",1],["agent",1],["without",1],["hand",1],["written",1],["field",1],["aliases",1],["hungarian",1],["algorithm",1],["matching",1],["via",1],["scipy",1],["optimize",1],["linear",1],["sum",1],["assignment",1],["loose",1],["mode",2],["keeps",1],["75",1],["precision",1],["recall",1],["threshold",1],["boost",1],["one",1],["vs",1],["many",1],["tolerance",1],["order",3],["queries",1],["strict",1],["disables",1],["both",1],["ordered",1],["uses",1],["sqlglot",3],["tolerates",1],["parse",1],["failures",1],["falling",1],["back",1],["substring",1],["scan",1],["from",4],["future",1],["import",7],["annotations",1],["copy",1],["deepcopy",1],["typing",1],["any",1],["dict",1],["list",1],["tuple",1],["numpy",1],["as",1],["np",1],["optimizer",1],["scope",2],["traverse",1],["max",2],["extra",1],["columns",3],["missing",2],["score",2],["wrong",1],["percentage",1],["atol",1]]},{"id":"evaluation/execution_match.py#_cells_equal","name":[["cells",1],["equal",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["cells",2],["equal",4],["left",7],["any",4],["right",7],["float",6],["digits",8],["int",2],["number",2],["considered",2],["bool",2],["json",9],["try",2],["parse",2],["value",2],["if",1],["not",2],["none",2],["return",2],["parsed",1],["values",1]]},{"id":"evaluation/execution_match.py#_check_one_vs_many","name":[["check",1],["one",1],["vs",1],["many",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["check",2],["one",2],["vs",2],["many",2],["top",5],["dict",4],["str",4],["list",4],["any",4],["all",5],["rows",8],["float",4],["digits",6],["int",2],["number",2],["considered",2],["bool",2],["match",1],["row",2],["against",1],["first",1],["if",1],["not",1],["dataframe",3],["return",2],["false",1],["truncated",2],["col",2],["vals",2],["items",1],["similarity",1],["order",1],["matters",1],["true",1]]},{"id":"evaluation/execution_match.py#_columns_equal","name":[["columns",1],["equal",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["columns",2],["equal",4],["col",10],["list",5],["any",4],["order",3],["matters",3],["bool",4],["float",6],["digits",8],["int",2],["number",2],["considered",2],["if",3],["len",2],["return",4],["false",2],["all",1],["cells",2],["zip",1],["unmatched",3],["enumerate",1],["pop",1],["break",1],["else",1],["true",1]]},{"id":"evaluation/execution_match.py#_compute_eval_score","name":[["compute",1],["eval",1],["score",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["compute",2],["eval",2],["score",2],["pred",8],["dict",4],["str",4],["list",4],["any",4],["gold",8],["order",4],["matters",4],["bool",2],["max",4],["extra",3],["int",4],["float",10],["digits",10],["number",3],["considered",2],["if",5],["check",2],["one",2],["vs",2],["many",2],["return",5],["not",2],["len",4],["missing",1],["columns",1],["dataframe",1],["similarity",1]]},{"id":"evaluation/execution_match.py#_dataframe_similarity","name":[["dataframe",1],["similarity",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",4],["dataframe",5],["similarity",4],["pred",10],["dict",4],["str",4],["list",10],["any",4],["gold",9],["order",7],["matters",6],["bool",2],["float",12],["digits",10],["int",2],["number",4],["considered",2],["hungarian",1],["algorithm",1],["column",1],["match",1],["return",9],["from",1],["scipy",1],["optimize",1],["import",1],["linear",2],["sum",3],["assignment",2],["if",8],["not",1],["extra",5],["len",4],["max",2],["columns",5],["missing",2],["metric",3],["equal",2],["true",1],["else",3],["false",2],["values",8],["distances",4],["np",2],["empty",1],["dtype",1],["double",1],["pv",2],["enumerate",2],["gv",2],["row",2],["ind",4],["col",2],["cost",4],["matrix",1],["min",3],["round",1],["zip",1],["score",2],["rows",2],["wrong",1]]},{"id":"evaluation/execution_match.py#_dataframe_similarity.metric","name":[["metric",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["metric",2],["list",4],["float",4],["return",1],["if",1],["columns",1],["equal",1],["order",1],["matters",1],["true",1],["digits",2],["else",1]]},{"id":"evaluation/execution_match.py#_dataframe_similarity.metric~2","name":[["metric",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["metric",2],["list",4],["float",4],["return",1],["if",1],["columns",1],["equal",1],["order",1],["matters",1],["false",1],["digits",2],["else",1]]},{"id":"evaluation/execution_match.py#_get_overlap_columns","name":[["overlap",1],["columns",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["overlap",2],["columns",18],["denotation",6],["pred",29],["dict",4],["str",6],["list",5],["any",6],["gold",45],["ignore",4],["extra",5],["recall",12],["bool",2],["false",5],["float",8],["digits",6],["int",6],["number",2],["considered",2],["tuple",2],["per",1],["column",1],["matching",2],["via",1],["pandas",3],["testing",2],["assert",3],["series",3],["equal",7],["loose",1],["returns",1],["exact",7],["percent",5],["precision",4],["upstream",1],["swapped",1],["convention",1],["matches",3],["cols",3],["agent",1],["no",1],["longer",1],["penalize",1],["by",1],["s2sql",1],["judge",1],["import",2],["as",1],["pd",7],["from",1],["df",23],["data",2],["frame",2],["if",11],["empty",1],["len",6],["return",2],["temp",11],["copy",1],["deep",1],["true",6],["col",42],["name",8],["sort",2],["values",2],["reset",2],["index",2],["drop",6],["dtype",5],["object",2],["notna",2],["none",2],["api",2],["types",2],["datetime64",2],["try",2],["astype",2],["except",2],["exception",1],["pass",1],["check",2],["names",1],["break",4],["assertion",1],["error",3],["type",1],["attribute",1],["tolist",2],["order",1],["matters",1],["num",12],["numeric",2],["errors",2],["coerce",2],["isnull",2],["all",7],["continue",1],["np",3],["isclose",3],["rtol",1],["1e",2],["atol",5],["nan",3],["abs",2],["dropna",2],["100",4],["percentage",2],["total",3],["else",3],["denom",3]]},{"id":"evaluation/execution_match.py#_json_objects_compatible","name":[["json",1],["objects",1],["compatible",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["json",4],["objects",3],["compatible",3],["left",12],["any",4],["right",12],["float",14],["digits",16],["int",2],["number",2],["considered",2],["bool",2],["key",1],["agnostic",1],["object",1],["array",1],["compatibility",1],["via",1],["value",1],["coverage",1],["if",4],["isinstance",4],["dict",2],["primitive",4],["values",5],["len",4],["return",5],["cover",2],["list",2],["false",1],["all",1],["zip",1],["equal",1]]},{"id":"evaluation/execution_match.py#_json_parsed_equal","name":[["json",1],["parsed",1],["equal",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["json",4],["parsed",2],["equal",2],["left",12],["any",4],["right",12],["float",6],["digits",8],["int",2],["number",2],["considered",2],["bool",2],["if",4],["isinstance",6],["dict",4],["not",2],["list",2],["len",2],["return",3],["false",1],["all",1],["objects",2],["compatible",2],["zip",1]]},{"id":"evaluation/execution_match.py#_normalize_primitive","name":[["normalize",1],["primitive",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["normalize",2],["primitive",2],["val",7],["any",4],["float",4],["digits",5],["int",2],["number",2],["considered",2],["if",2],["isinstance",2],["return",3],["round",1],["str",1],["case",1],["insensitive",1],["cell",1],["match",1],["no",2],["count",1],["as",1],["equal",1],["strip",1],["casefold",1]]},{"id":"evaluation/execution_match.py#_primitive_values","name":[["primitive",1],["values",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["primitive",5],["values",5],["obj",10],["any",6],["float",9],["digits",10],["int",3],["number",2],["considered",2],["list",5],["collect",1],["leaf",1],["primitives",1],["from",1],["parsed",1],["json",1],["structure",1],["if",3],["isinstance",3],["dict",1],["out",6],["extend",2],["return",4],["item",2],["none",1],["bool",1],["str",1],["normalize",1]]},{"id":"evaluation/execution_match.py#_primitive_values_cover","name":[["primitive",1],["values",1],["cover",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["primitive",2],["values",3],["cover",2],["smaller",5],["list",4],["any",4],["larger",5],["float",4],["digits",6],["int",2],["number",2],["considered",2],["bool",2],["return",4],["true",5],["every",1],["value",2],["matches",1],["distinct",1],["if",4],["not",2],["false",3],["len",1],["sv",2],["matched",3],["lv",2],["enumerate",1],["continue",1],["equal",1],["break",1]]},{"id":"evaluation/execution_match.py#_round_floats","name":[["round",1],["floats",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["round",4],["floats",3],["denotation",3],["dict",2],["str",2],["list",2],["any",2],["float",5],["digits",6],["int",2],["number",2],["considered",2],["none",2],["place",1],["decimal",1],["places",1],["column",3],["values",4],["ix",2],["value",3],["enumerate",1],["if",1],["isinstance",1]]},{"id":"evaluation/execution_match.py#_rows_for_dataframe","name":[["rows",1],["dataframe",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["rows",2],["dataframe",2],["df",3],["dict",2],["str",2],["list",3],["any",2],["int",2],["vals",3],["values",1],["return",1],["len",1],["if",1],["else",1]]},{"id":"evaluation/execution_match.py#_sequences_equal_ignore_order","name":[["sequences",1],["equal",1],["ignore",1],["order",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["sequences",2],["equal",2],["ignore",2],["order",2],["seq1",3],["list",4],["any",4],["seq2",3],["bool",2],["unmatched",3],["deepcopy",1],["el",2],["try",1],["remove",1],["except",1],["value",1],["error",1],["return",2],["false",1],["not",1]]},{"id":"evaluation/execution_match.py#_try_parse_json_value","name":[["try",1],["parse",1],["json",1],["value",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["try",3],["parse",2],["json",4],["value",2],["val",6],["any",4],["none",5],["if",3],["isinstance",2],["str",1],["text",4],["strip",1],["not",2],["return",5],["loads",1],["except",1],["jsondecode",1],["error",1],["list",1],["dict",1]]},{"id":"evaluation/execution_match.py#_values_equal","name":[["values",1],["equal",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["values",2],["equal",4],["any",4],["float",14],["digits",8],["int",4],["number",2],["considered",2],["bool",4],["normalize",2],["primitive",2],["if",2],["isinstance",4],["return",3],["np",2],["isclose",2],["rtol",2],["1e",4],["atol",2],["nan",2],["true",2]]},{"id":"evaluation/execution_match.py#compare_execution_results","name":[["compare",1],["execution",1],["results",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["compare",2],["execution",2],["results",3],["pred",15],["result",6],["dict",4],["str",4],["list",4],["any",4],["gold",15],["order",4],["matters",4],["bool",7],["false",6],["max",5],["number",7],["extra",10],["columns",12],["int",5],["strict",6],["ignore",5],["recall",8],["float",21],["digits",17],["considered",2],["tuple",2],["return",6],["eval",12],["score",11],["v2",6],["column",2],["precision",2],["mirrors",1],["aggregate",1],["py",1],["formula",1],["greatest",1],["case",1],["col",12],["75",5],["then",1],["else",2],["end",1],["mode",1],["true",2],["disables",1],["both",1],["one",3],["vs",3],["many",4],["row",1],["tolerance",1],["threshold",4],["boost",2],["useful",1],["downstream",1],["metric",1],["needs",1],["raw",1],["similarity",1],["matches",2],["cols",2],["instead",1],["so",1],["bonus",1],["agent",1],["seshkey",1],["not",6],["block",1],["controls",1],["decimal",1],["places",1],["floats",3],["rounded",1],["before",1],["comparison",1],["default",1],["s2sql",1],["uses",1],["copy",18],["deepcopy",2],["round",2],["if",5],["rows",6],["dataframe",2],["check",2],["compute",1],["overlap",1],["met",2],["elif",1]]},{"id":"evaluation/execution_match.py#is_sql_ordered","name":[["sql",1],["ordered",1]],"path":[["evaluation",1],["execution",1],["match",1],["py",1]],"body":[["def",2],["sql",9],["ordered",2],["str",2],["bool",2],["return",6],["true",2],["if",4],["outermost",1],["select",2],["carries",1],["order",6],["by",5],["not",2],["false",2],["try",1],["scopes",3],["traverse",1],["scope",1],["sqlglot",3],["parse",1],["one",1],["lower",2],["find",1],["all",1],["exp",2],["isinstance",1],["parent",1],["except",1],["exception",1]]},{"id":"evaluation/llm_judge.py","name":[["llm",1],["judge",1],["py",1]],"path":[["evaluation",1],["llm",1],["judge",1],["py",1]],"body":[["usr",1],["bin",1],["env",1],["python3",1],["run",1],["public",1],["text",2],["answer",2],["judge",2],["over",1],["jsonl",1],["file",2],["from",4],["future",1],["import",8],["annotations",1],["argparse",1],["json",1],["os",1],["re",1],["pathlib",1],["path",4],["typing",1],["any",1],["iterator",1],["openai",1],["open",1],["ai",1],["prompt",3],["resolve",1],["parent",1],["prompts",1],["txt",1],["read",1],["encoding",1],["utf",1],["if",1],["name",1],["main",2]]},{"id":"evaluation/llm_judge.py#iter_jsonl","name":[["iter",1],["jsonl",1]],"path":[["evaluation",1],["llm",1],["judge",1],["py",1]],"body":[["def",2],["iter",2],["jsonl",2],["path",6],["iterator",2],["dict",3],["str",2],["any",2],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",5],["number",2],["enumerate",1],["if",2],["not",2],["strip",1],["continue",1],["value",4],["json",2],["loads",1],["isinstance",1],["raise",1],["error",1],["expected",1],["object",1],["yield",1]]},{"id":"evaluation/llm_judge.py#judge_one","name":[["judge",1],["one",1]],"path":[["evaluation",1],["llm",1],["judge",1],["py",1]],"body":[["def",2],["judge",2],["one",2],["client",3],["open",2],["ai",2],["model",4],["str",9],["record",7],["dict",4],["any",4],["question",6],["strip",4],["answer",7],["response",4],["expected",4],["correct",2],["if",1],["not",3],["raise",1],["value",1],["error",1],["each",1],["needs",1],["prompt",3],["format",1],["chat",1],["completions",1],["create",1],["messages",1],["role",1],["user",1],["content",2],["temperature",1],["max",1],["tokens",1],["2048",1],["raw",2],["choices",1],["message",1],["return",1],["parse",1],["verdict",1]]},{"id":"evaluation/llm_judge.py#main","name":[["main",1]],"path":[["evaluation",1],["llm",1],["judge",1],["py",1]],"body":[["def",2],["main",2],["none",2],["args",7],["parse",1],["model",7],["strip",3],["if",3],["not",1],["raise",1],["system",1],["exit",1],["judge",3],["pass",1],["client",6],["kwargs",3],["dict",1],["str",1],["any",1],["api",2],["key",2],["os",1],["environ",1],["empty",1],["base",3],["url",3],["open",2],["ai",1],["output",5],["expanduser",2],["resolve",2],["parent",1],["mkdir",1],["parents",1],["true",2],["exist",1],["ok",1],["total",5],["correct",6],["encoding",1],["utf",1],["as",1],["handle",2],["record",3],["iter",1],["jsonl",1],["input",1],["judged",4],["one",1],["int",1],["write",1],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1],["accuracy",3],["else",1],["print",2],["records",1],["3f",1],["wrote",1]]},{"id":"evaluation/llm_judge.py#parse_args","name":[["parse",1],["args",1]],"path":[["evaluation",1],["llm",1],["judge",1],["py",1]],"body":[["def",2],["parse",3],["args",3],["argparse",3],["namespace",2],["parser",7],["argument",5],["description",1],["doc",1],["add",4],["input",1],["required",2],["true",2],["type",2],["path",2],["output",1],["model",2],["default",2],["os",2],["environ",2],["judge",2],["base",3],["url",3],["help",1],["optional",1],["open",1],["ai",1],["compatible",1],["api",1],["return",1]]},{"id":"evaluation/llm_judge.py#parse_verdict","name":[["parse",1],["verdict",1]],"path":[["evaluation",1],["llm",1],["judge",1],["py",1]],"body":[["def",2],["parse",4],["verdict",2],["raw",6],["str",4],["dict",2],["any",2],["auditable",1],["fields",1],["emitted",1],["by",1],["judge",2],["prompt",1],["text",5],["replace",1],["correct",7],["match",13],["re",10],["search",4],["yes",2],["no",1],["ignorecase",4],["reason",3],["reasoning",2],["ncorrect",1],["nconfidence",1],["dotall",2],["answer",6],["extracted",2],["final",2],["nreasoning",1],["confidence",5],["return",1],["bool",1],["group",4],["lower",1],["ok",1],["not",1],["none",3],["strip",3],["if",3],["else",3],["float",1],["output",1]]},{"id":"evaluation/s2sql_eval.py","name":[["s2sql",1],["eval",1],["py",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["usr",1],["bin",1],["env",1],["python3",1],["evaluate",1],["s2",2],["sql",6],["predictions",1],["by",1],["read",1],["only",1],["execution",3],["match",2],["from",6],["future",1],["import",8],["annotations",1],["argparse",1],["json",1],["pathlib",1],["path",1],["typing",1],["any",1],["iterator",1],["number",1],["digits",1],["considered",1],["compare",1],["results",1],["ordered",1],["extract",2],["source",1],["none",1],["agent",1],["sqlite",1],["executor",1],["execute",1],["readonly",1],["rows",1],["if",1],["name",1],["main",2]]},{"id":"evaluation/s2sql_eval.py#evaluate_record","name":[["evaluate",1],["record",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["def",2],["evaluate",2],["record",13],["dict",5],["str",11],["any",5],["db",14],["root",4],["path",7],["none",10],["template",4],["max",6],["rows",18],["int",2],["timeout",6],["float",5],["strict",4],["bool",2],["final",4],["text",3],["response",1],["answer",1],["strip",2],["gold",23],["sql",21],["messages",6],["if",8],["not",7],["isinstance",1],["list",1],["message",4],["format",4],["openai",1],["verdict",19],["instance",2],["id",3],["judge",1],["kind",1],["s2sql",1],["exec",9],["match",3],["false",2],["score",6],["reason",8],["agent",27],["source",5],["column",4],["precision",6],["recall",7],["order",6],["sensitive",5],["error",11],["table",8],["missing",1],["return",7],["extract",1],["extraction",1],["failed",1],["try",1],["resolve",1],["database",1],["except",1],["value",1],["as",1],["exc",2],["file",1],["sqlite",1],["found",1],["columns",9],["meta",8],["execute",2],["readonly",2],["ok",2],["columnar",2],["ordered",1],["compare",1],["execution",1],["results",1],["matters",1],["ignore",1],["extra",1],["true",1],["digits",2],["s2",1],["number",1],["considered",1],["matched",4],["update",1],["else",2],["mismatch",1],["raw",1],["3f",3],["col",2]]},{"id":"evaluation/s2sql_eval.py#iter_jsonl","name":[["iter",1],["jsonl",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["def",2],["iter",2],["jsonl",2],["path",6],["iterator",2],["dict",3],["str",2],["any",2],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",5],["number",2],["enumerate",1],["if",2],["not",2],["strip",1],["continue",1],["value",4],["json",2],["loads",1],["isinstance",1],["raise",1],["error",1],["expected",1],["object",1],["yield",1]]},{"id":"evaluation/s2sql_eval.py#main","name":[["main",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["def",2],["main",2],["none",3],["args",10],["parse",1],["db",7],["root",5],["expanduser",3],["resolve",3],["if",2],["else",2],["output",5],["parent",1],["mkdir",1],["parents",1],["true",2],["exist",1],["ok",1],["total",5],["matched",5],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["record",3],["iter",1],["jsonl",1],["input",1],["verdict",3],["evaluate",1],["template",2],["max",3],["rows",2],["timeout",2],["strict",2],["int",1],["match",1],["write",1],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1],["accuracy",3],["print",2],["evaluated",1],["s2",1],["sql",1],["records",1],["3f",1],["wrote",1]]},{"id":"evaluation/s2sql_eval.py#parse_args","name":[["parse",1],["args",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["def",2],["parse",3],["args",3],["argparse",3],["namespace",2],["parser",10],["argument",8],["description",1],["doc",1],["add",7],["input",1],["required",2],["true",3],["type",5],["path",4],["output",1],["db",7],["root",2],["template",2],["default",3],["sqlite",1],["help",1],["below",1],["replaced",1],["by",1],["record",1],["field",1],["max",1],["rows",1],["int",1],["10",1],["000",1],["timeout",1],["float",1],["120",1],["strict",1],["action",1],["store",1],["return",1]]},{"id":"evaluation/s2sql_eval.py#resolve_database","name":[["resolve",1],["database",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["def",2],["resolve",3],["database",2],["record",5],["dict",2],["str",6],["any",2],["db",16],["root",5],["path",7],["none",3],["template",3],["explicit",3],["strip",2],["if",2],["return",2],["expanduser",1],["name",3],["not",1],["raise",1],["value",1],["error",1],["needs",1],["together",1],["format",1]]},{"id":"evaluation/s2sql_eval.py#rows_to_columnar","name":[["rows",1],["columnar",1]],"path":[["evaluation",1],["s2sql",1],["eval",1],["py",1]],"body":[["def",2],["rows",5],["columnar",2],["list",8],["any",4],["columns",4],["str",4],["dict",2],["result",3],["column",4],["row",3],["index",3],["enumerate",1],["append",1],["if",1],["len",1],["else",1],["none",1],["return",1]]},{"id":"evaluation/sql_extract.py","name":[["sql",1],["extract",1],["py",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["extract",1],["canonical",1],["sql",10],["agent",1],["produced",1],["search",1],["trial",1],["tries",1],["order",1],["last",5],["fenced",6],["block",2],["final",4],["text",4],["generic",3],["argument",1],["successful",1],["run",3],["tool",11],["call",4],["native",1],["trajectory",1],["skips",1],["calls",2],["whose",1],["paired",3],["result",2],["missing",1],["marked",1],["as",1],["error",2],["two",1],["common",1],["message",1],["formats",1],["supported",1],["openai",1],["assistant",2],["function",1],["name",2],["arguments",1],["role",2],["results",1],["keyed",2],["by",2],["id",2],["anthropic",1],["content",2],["blocks",2],["type",2],["user",1],["carrying",1],["from",2],["future",1],["import",4],["annotations",1],["json",1],["re",1],["typing",1],["any",1],["iterable",1],["source",5],["label",1],["vocabulary",1],["returned",1],["alongside",1],["extracted",1],["none",2]]},{"id":"evaluation/sql_extract.py#_anthropic_tool_results_by_id","name":[["anthropic",1],["tool",1],["results",1],["by",1],["id",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["anthropic",2],["tool",4],["results",2],["by",5],["id",6],["messages",3],["list",3],["dict",10],["str",9],["any",5],["if",4],["not",2],["isinstance",3],["role",1],["user",1],["continue",2],["content",4],["block",5],["type",1],["result",1],["tid",3],["return",1]]},{"id":"evaluation/sql_extract.py#_last_fenced","name":[["last",1],["fenced",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["last",2],["fenced",2],["text",3],["str",6],["label",3],["pattern",5],["none",4],["re",2],["compile",1],["rf",1],["dotall",1],["matches",3],["list",1],["finditer",1],["if",1],["not",1],["return",2],["group",1],["strip",1]]},{"id":"evaluation/sql_extract.py#_last_run_sql_anthropic","name":[["last",1],["run",1],["sql",1],["anthropic",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["last",2],["run",3],["sql",7],["anthropic",3],["messages",4],["list",3],["dict",5],["str",6],["any",2],["none",5],["by",3],["id",4],["tool",3],["results",1],["reversed",2],["if",8],["not",6],["isinstance",4],["role",1],["assistant",1],["continue",7],["content",4],["block",6],["type",1],["name",2],["inp",3],["input",1],["strip",1],["tid",3],["paired",3],["else",1],["bool",1],["error",1],["return",2]]},{"id":"evaluation/sql_extract.py#_last_run_sql_openai","name":[["last",1],["run",1],["sql",1],["openai",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["last",2],["run",3],["sql",7],["openai",4],["messages",4],["list",3],["dict",6],["str",7],["any",2],["none",4],["by",3],["id",4],["tool",4],["results",1],["reversed",2],["if",8],["not",4],["isinstance",6],["role",1],["assistant",1],["continue",6],["calls",4],["tc",6],["fn",3],["function",2],["else",2],["name",5],["raw",5],["args",10],["arguments",1],["try",1],["json",2],["loads",1],["except",1],["jsondecode",1],["error",2],["elif",1],["strip",1],["cid",3],["result",1],["return",2]]},{"id":"evaluation/sql_extract.py#_openai_tool_result_is_error","name":[["openai",1],["tool",1],["result",1],["error",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["openai",2],["tool",8],["result",2],["error",5],["msg",4],["dict",4],["str",4],["any",2],["none",2],["bool",2],["open",2],["ai",2],["doesn",1],["mark",1],["errors",1],["structurally",1],["treat",2],["rejected",2],["content",8],["prefixes",1],["as",2],["failures",1],["matching",1],["agent",1],["loop",2],["encodes",1],["class",1],["if",4],["not",1],["isinstance",3],["return",2],["true",1],["missing",1],["pair",1],["failed",1],["list",1],["defensive",1],["messages",1],["usually",1],["plain",1],["strings",1],["but",1],["be",1],["robust",1],["future",1],["version",1],["emits",1],["structured",1],["text",4],["join",1],["else",1],["head",3],["lstrip",1],["startswith",2]]},{"id":"evaluation/sql_extract.py#_openai_tool_results_by_id","name":[["openai",1],["tool",1],["results",1],["by",1],["id",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["openai",2],["tool",6],["results",2],["by",5],["id",7],["messages",4],["list",2],["dict",9],["str",9],["any",5],["build",1],["call",2],["message",1],["from",1],["open",1],["ai",1],["shaped",1],["if",2],["not",1],["isinstance",1],["role",1],["continue",1],["cid",3],["return",1]]},{"id":"evaluation/sql_extract.py#_walk_messages_for_run_sql","name":[["walk",1],["messages",1],["run",1],["sql",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["walk",2],["messages",6],["run",4],["sql",4],["iterable",2],["dict",2],["str",6],["any",2],["none",5],["message",3],["format",3],["if",2],["not",1],["return",3],["msgs",3],["list",1],["anthropic",2],["last",2],["openai",1]]},{"id":"evaluation/sql_extract.py#extract_agent_sql","name":[["extract",1],["agent",1],["sql",1]],"path":[["evaluation",1],["sql",1],["extract",1],["py",1]],"body":[["def",2],["extract",2],["agent",3],["sql",14],["final",5],["text",8],["str",10],["messages",4],["list",2],["dict",2],["any",2],["none",4],["message",4],["format",4],["openai",2],["tuple",2],["return",5],["source",7],["explains",1],["came",1],["from",1],["one",1],["fenced",12],["generic",5],["last",7],["tool",2],["call",2],["empty",1],["means",1],["nothing",1],["was",1],["extractable",1],["caller",1],["should",1],["report",1],["extraction",1],["failed",1],["if",3],["walk",1],["run",1]]},{"id":"evaluation/sqlite_executor.py","name":[["sqlite",1],["executor",1],["py",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["read",2],["only",2],["sqlite",3],["query",2],["execution",1],["write",3],["statement",1],["guard",2],["two",1],["layers",1],["func",2],["execute",2],["readonly",1],["rows",2],["returns",1],["columns",1],["meta",1],["by",1],["judges",1],["need",1],["table",2],["values",1],["directly",1],["wraps",1],["pretty",1],["printed",1],["text",1],["agent",1],["tool",1],["observation",1],["connections",1],["opened",1],["uri",1],["mode",1],["ro",1],["so",1],["even",1],["if",1],["token",1],["misses",1],["exotic",1],["path",2],["refuses",1],["mutate",1],["file",1],["from",3],["future",1],["import",6],["annotations",1],["re",7],["sqlite3",1],["time",1],["pathlib",1],["typing",1],["any",1],["sql",1],["compile",3],["select",1],["pragma",1],["explain",1],["ignorecase",1],["dotall",2],["leading",2],["line",1],["comment",2],["block",1]]},{"id":"evaluation/sqlite_executor.py#_clear_query_timeout","name":[["clear",1],["query",1],["timeout",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",2],["clear",2],["query",2],["timeout",2],["conn",3],["sqlite3",2],["connection",2],["none",3],["progress",1],["handler",1]]},{"id":"evaluation/sqlite_executor.py#_install_query_timeout","name":[["install",1],["query",1],["timeout",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",3],["install",2],["query",2],["timeout",7],["conn",4],["sqlite3",2],["connection",2],["float",4],["none",7],["abort",1],["long",1],["running",1],["queries",1],["via",1],["sqlite",1],["progress",3],["handler",5],["if",2],["return",3],["deadline",3],["time",2],["monotonic",2],["int",1],["else",1],["10",1],["000",1]]},{"id":"evaluation/sqlite_executor.py#_install_query_timeout._handler","name":[["handler",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",2],["handler",2],["int",2],["return",1],["if",1],["time",1],["monotonic",1],["deadline",1],["else",1]]},{"id":"evaluation/sqlite_executor.py#_reject_write","name":[["reject",1],["write",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",2],["reject",2],["write",3],["sql",6],["str",4],["none",4],["two",1],["pass",1],["guard",1],["token",3],["blacklist",1],["plus",1],["opener",1],["keyword",2],["whitelist",1],["returns",1],["error",1],["message",1],["should",1],["be",1],["rejected",3],["safe",1],["execute",1],["list",1],["catches",1],["common",1],["paths",1],["insert",2],["etc",1],["regex",1],["enforces",1],["opening",1],["after",1],["stripping",1],["any",1],["leading",2],["comments",2],["mode",1],["ro",1],["connection",1],["final",1],["guarantee",1],["strip",3],["upper",1],["banned",2],["update",1],["delete",1],["drop",1],["alter",1],["create",1],["attach",1],["detach",1],["vacuum",1],["replace",1],["if",2],["return",3],["disallowed",1],["query",1],["head",2],["not",1],["read",1],["only",2],["match",1],["select",1],["pragma",1],["explain",1],["queries",1],["allowed",1]]},{"id":"evaluation/sqlite_executor.py#_strip_leading_comments","name":[["strip",1],["leading",1],["comments",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",2],["strip",3],["leading",5],["comments",3],["sql",4],["str",4],["iteratively",1],["whitespace",1],["while",1],["true",1],["s2",6],["lstrip",1],["line",1],["comment",2],["match",2],["if",2],["end",2],["continue",2],["block",1],["return",1]]},{"id":"evaluation/sqlite_executor.py#execute_readonly_rows","name":[["execute",1],["readonly",1],["rows",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",2],["execute",3],["readonly",2],["rows",11],["db",7],["path",11],["sql",5],["str",7],["max",6],["int",3],["500",2],["timeout",7],["float",2],["none",6],["tuple",2],["list",7],["any",4],["dict",2],["run",1],["read",1],["only",1],["query",4],["return",8],["as",4],["lists",1],["column",1],["names",1],["meta",2],["carries",1],["ok",9],["bool",2],["error",10],["not",6],["truncated",6],["result",1],["exceeded",1],["err",3],["reject",1],["write",1],["if",5],["false",5],["expanduser",1],["resolve",2],["file",3],["msg",2],["database",1],["found",1],["try",3],["uri",3],["posix",1],["conn",6],["sqlite3",5],["connect",2],["mode",1],["ro",1],["true",3],["row",3],["factory",1],["except",3],["exc",5],["sqlite",1],["failed",1],["deadline",2],["install",1],["cur",2],["fetch",1],["one",1],["extra",1],["detect",1],["truncation",1],["cleanly",1],["fetched",7],["fetchmany",1],["interrupted",1],["lower",1],["limit",2],["else",1],["timed",1],["out",1],["after",1],["finally",1],["clear",1],["close",1],["pass",1],["len",1],["cols",3],["keys",1]]},{"id":"evaluation/sqlite_executor.py#execute_sqlite_query","name":[["execute",1],["sqlite",1],["query",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",3],["execute",3],["sqlite",2],["query",3],["db",5],["path",7],["sql",5],["str",12],["max",11],["rows",18],["int",4],["500",2],["cell",7],["chars",5],["2000",2],["timeout",4],["float",2],["none",5],["tuple",2],["dict",3],["any",3],["run",1],["read",1],["only",1],["return",5],["formatted",1],["text",4],["metadata",1],["output",1],["fixed",1],["width",1],["table",7],["header",3],["so",1],["agent",1],["quickly",1],["see",1],["big",1],["result",2],["cells",4],["over",1],["clipped",1],["cols",2],["base",5],["meta",8],["readonly",1],["if",5],["not",2],["ok",3],["error",3],["false",1],["truncated",8],["bool",1],["true",1],["expanduser",1],["resolve",1],["empty",1],["row",5],["count",2],["list",3],["else",1],["len",5],["append",2],["colnames",3],["widths",5],["tr",4],["enumerate",2],["min",1],["60",1],["fmt",3],["vals",2],["join",3],["ljust",1],["sep",2],["body",2],["summary",3],["first",1],["more",1],["existed",1]]},{"id":"evaluation/sqlite_executor.py#execute_sqlite_query.fmt_row","name":[["fmt",1],["row",1]],"path":[["evaluation",1],["sqlite",1],["executor",1],["py",1]],"body":[["def",2],["fmt",2],["row",2],["vals",3],["list",2],["str",4],["return",1],["join",1],["ljust",1],["widths",1],["enumerate",1]]},{"id":"preprocess/build_dataset_releases.py","name":[["build",1],["dataset",1],["releases",1],["py",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["usr",1],["bin",1],["env",1],["python3",1],["build",1],["complete",1],["preview",1],["release",1],["jsonl",4],["files",2],["from",4],["v1",1],["plus",1],["sparse",1],["v2",1],["patches",1],["future",1],["import",6],["annotations",1],["argparse",1],["hashlib",1],["json",1],["pathlib",1],["path",4],["typing",1],["any",1],["task",1],["search",9],["sql",9],["type",3],["examples",3],["parallel",5],["expected",1],["prefixes",1],["s2sql",1],["sql2s",1],["required",1],["fields",1],["id",1],["final",2],["question",1],["hint",1],["db",1],["answer",1],["if",1],["name",1],["main",2]]},{"id":"preprocess/build_dataset_releases.py#build_releases","name":[["build",1],["releases",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["build",2],["releases",2],["v1",9],["root",13],["path",21],["v2",8],["output",9],["dict",6],["str",10],["any",4],["preview",19],["rows",20],["list",2],["release",19],["counts",4],["int",1],["task",13],["type",12],["relative",5],["files",1],["items",1],["load",2],["jsonl",6],["merged",3],["patched",2],["overlay",1],["extend",2],["row",6],["records",4],["len",8],["overrides",3],["hybrid",7],["ds",7],["write",3],["ids",10],["id",3],["if",3],["raise",3],["value",3],["error",3],["contains",2],["duplicate",2],["order",1],["mismatch",1],["manifest",6],["source",2],["full",3],["sha256",4],["overlaid",1],["by",2],["sum",1],["item",2],["values",1],["json",2],["text",1],["dumps",1],["ensure",1],["ascii",1],["false",1],["indent",1],["encoding",1],["utf",1],["return",1]]},{"id":"preprocess/build_dataset_releases.py#load_jsonl","name":[["load",1],["jsonl",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["load",2],["jsonl",2],["path",9],["task",4],["type",4],["str",7],["list",3],["dict",4],["any",3],["rows",3],["seen",3],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",8],["number",5],["enumerate",1],["if",5],["not",5],["strip",2],["continue",1],["row",4],["json",2],["loads",1],["isinstance",1],["raise",4],["value",4],["error",4],["expected",4],["object",1],["record",7],["id",11],["missing",1],["duplicate",1],["prefix",2],["prefixes",1],["startswith",1],["match",1],["add",1],["append",1],["return",1]]},{"id":"preprocess/build_dataset_releases.py#main","name":[["main",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["main",2],["none",2],["args",5],["parse",1],["manifest",2],["build",1],["releases",1],["v1",2],["root",6],["expanduser",3],["resolve",3],["v2",2],["output",2],["print",1],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1],["indent",1]]},{"id":"preprocess/build_dataset_releases.py#overlay_rows","name":[["overlay",1],["rows",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["overlay",2],["rows",10],["base",14],["list",6],["dict",6],["str",12],["any",6],["patch",11],["task",7],["type",7],["tuple",2],["int",2],["ids",3],["row",8],["id",14],["by",7],["unknown",3],["sorted",2],["if",3],["raise",2],["value",2],["error",2],["v2",2],["contains",2],["absent",1],["from",1],["v1",1],["join",2],["identical",3],["record",3],["items",1],["unchanged",1],["records",1],["merged",2],["return",1],["len",1]]},{"id":"preprocess/build_dataset_releases.py#parse_args","name":[["parse",1],["args",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["parse",3],["args",3],["argparse",3],["namespace",2],["parser",6],["argument",4],["description",1],["doc",1],["add",3],["v1",1],["root",3],["required",3],["true",3],["type",3],["path",3],["v2",1],["output",1],["return",1]]},{"id":"preprocess/build_dataset_releases.py#sha256","name":[["sha256",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["sha256",3],["path",5],["str",2],["digest",3],["hashlib",1],["open",1],["rb",1],["as",1],["handle",2],["chunk",2],["iter",1],["lambda",1],["read",1],["1024",2],["update",1],["return",1],["hexdigest",1]]},{"id":"preprocess/build_dataset_releases.py#with_task_type","name":[["task",1],["type",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["task",5],["type",6],["row",6],["dict",4],["str",6],["any",4],["missing",4],["field",3],["required",2],["fields",2],["if",3],["not",1],["raise",1],["value",3],["error",1],["id",4],["unknown",1],["join",1],["result",3],["hybrid",1],["update",1],["key",3],["items",1],["return",1]]},{"id":"preprocess/build_dataset_releases.py#write_jsonl","name":[["write",1],["jsonl",1]],"path":[["preprocess",1],["build",1],["dataset",1],["releases",1],["py",1]],"body":[["def",2],["write",3],["jsonl",2],["path",6],["rows",3],["list",2],["dict",2],["str",2],["any",2],["none",2],["parent",1],["mkdir",1],["parents",1],["true",2],["exist",1],["ok",1],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["row",2],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1]]},{"id":"preprocess/prepare_public_tasks.py","name":[["prepare",1],["public",1],["tasks",1],["py",1]],"path":[["preprocess",1],["prepare",1],["public",1],["tasks",1],["py",1]],"body":[["usr",1],["bin",1],["env",1],["python3",1],["create",1],["public",2],["task",1],["records",1],["by",1],["removing",1],["construction",1],["grading",1],["fields",3],["from",3],["future",1],["import",5],["annotations",1],["argparse",1],["json",1],["pathlib",1],["path",1],["typing",1],["any",1],["iterator",1],["id",2],["hybrid",2],["type",2],["final",2],["question",2],["hint",1],["db",2],["required",1],["valid",1],["types",1],["sql",2],["search",2],["parallel",1],["if",1],["name",1],["main",2]]},{"id":"preprocess/prepare_public_tasks.py#iter_jsonl","name":[["iter",1],["jsonl",1]],"path":[["preprocess",1],["prepare",1],["public",1],["tasks",1],["py",1]],"body":[["def",2],["iter",2],["jsonl",2],["path",6],["iterator",2],["tuple",2],["int",2],["dict",3],["str",2],["any",2],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",6],["number",3],["enumerate",1],["if",2],["not",2],["strip",1],["continue",1],["value",4],["json",2],["loads",1],["isinstance",1],["raise",1],["error",1],["expected",1],["object",1],["yield",1]]},{"id":"preprocess/prepare_public_tasks.py#main","name":[["main",1]],"path":[["preprocess",1],["prepare",1],["public",1],["tasks",1],["py",1]],"body":[["def",2],["main",2],["none",2],["args",4],["parse",1],["source",4],["input",1],["expanduser",2],["resolve",2],["output",5],["parent",1],["mkdir",1],["parents",1],["true",2],["exist",1],["ok",1],["seen",3],["str",2],["count",3],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",3],["number",3],["record",7],["iter",1],["jsonl",1],["public",4],["prepare",1],["location",1],["id",6],["if",1],["raise",1],["value",1],["error",1],["duplicate",1],["add",1],["write",1],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1],["print",1],["wrote",1],["task",1],["records",1]]},{"id":"preprocess/prepare_public_tasks.py#parse_args","name":[["parse",1],["args",1]],"path":[["preprocess",1],["prepare",1],["public",1],["tasks",1],["py",1]],"body":[["def",2],["parse",3],["args",3],["argparse",3],["namespace",2],["parser",5],["argument",3],["description",1],["doc",1],["add",2],["input",1],["required",2],["true",2],["type",2],["path",2],["output",1],["return",1]]},{"id":"preprocess/prepare_public_tasks.py#prepare_record","name":[["prepare",1],["record",1]],"path":[["preprocess",1],["prepare",1],["public",1],["tasks",1],["py",1]],"body":[["def",2],["prepare",2],["record",9],["dict",4],["str",6],["any",4],["location",4],["missing",4],["key",7],["required",1],["fields",2],["if",4],["not",2],["raise",2],["value",2],["error",2],["join",1],["hybrid",3],["type",3],["valid",1],["types",1],["invalid",1],["return",1],["public",1]]},{"id":"preprocess/validate_predictions.py","name":[["validate",1],["predictions",1],["py",1]],"path":[["preprocess",1],["validate",1],["predictions",1],["py",1]],"body":[["usr",1],["bin",1],["env",1],["python3",1],["validate",1],["shape",1],["ids",1],["hybrid",1],["deep",1],["research",1],["predictions",1],["file",1],["from",3],["future",1],["import",5],["annotations",1],["argparse",1],["json",1],["pathlib",1],["path",1],["typing",1],["any",1],["if",1],["name",1],["main",2]]},{"id":"preprocess/validate_predictions.py#main","name":[["main",1]],"path":[["preprocess",1],["validate",1],["predictions",1],["py",1]],"body":[["def",2],["main",2],["none",2],["parser",4],["argparse",1],["argument",2],["description",1],["doc",1],["add",1],["predictions",2],["type",1],["path",4],["args",3],["parse",1],["expanduser",1],["resolve",1],["count",2],["validate",1],["print",1],["ok",1],["unique",1],["prediction",1],["records",1]]},{"id":"preprocess/validate_predictions.py#validate","name":[["validate",1]],"path":[["preprocess",1],["validate",1],["predictions",1],["py",1]],"body":[["def",2],["validate",3],["path",7],["int",2],["seen",3],["str",2],["count",4],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",5],["number",2],["enumerate",1],["if",7],["not",6],["strip",2],["continue",1],["location",8],["record",6],["json",2],["loads",1],["isinstance",2],["dict",1],["raise",6],["value",6],["error",6],["expected",1],["object",1],["extra",3],["instance",10],["id",10],["final",4],["answer",5],["unexpected",1],["fields",1],["join",1],["sorted",1],["must",1],["be",1],["non",1],["empty",1],["string",1],["duplicate",1],["missing",1],["add",1],["no",1],["prediction",1],["records",1],["found",1],["return",1]]},{"id":"preprocess/validate_predictions.py#validate_answer","name":[["validate",1],["answer",1]],"path":[["preprocess",1],["validate",1],["predictions",1],["py",1]],"body":[["def",2],["validate",2],["answer",4],["value",6],["any",2],["location",4],["str",3],["none",2],["if",2],["isinstance",1],["not",2],["strip",1],["raise",2],["error",2],["final",2],["must",2],["be",2],["empty",1],["return",1],["string",1]]},{"id":"tools/__init__.py","name":[["init",1],["py",1]],"path":[["tools",1],["init",1],["py",1]],"body":[["public",1],["hybrid",1],["deep",1],["research",1],["tool",2],["contract",1],["these",1],["capability",1],["names",1],["argument",1],["shapes",1],["agent",2],["should",1],["expose",1],["they",1],["not",1],["production",1],["loop",1],["wire",1],["them",1],["into",1],["your",1],["own",1],["framework",1],["search",3],["provider",1],["from",8],["future",1],["import",9],["annotations",1],["json",2],["pathlib",1],["path",3],["typing",1],["any",1],["callable",1],["final",3],["answer",3],["name",2],["make",5],["knowledge",2],["tools",1],["run",2],["sql",2],["web",4],["fetch",2],["schema",1],["file",1],["schemas",1]]},{"id":"tools/__init__.py#build_toolset","name":[["build",1],["toolset",1]],"path":[["tools",1],["init",1],["py",1]],"body":[["def",2],["build",2],["toolset",2],["sqlite",8],["db",8],["path",7],["str",12],["none",17],["root",5],["search",5],["fn",6],["fetch",5],["dict",3],["callable",3],["assemble",1],["public",1],["tool",2],["callables",1],["one",1],["task",1],["knowledge",2],["tools",5],["included",1],["both",1],["web",4],["make",5],["run",2],["sql",2],["final",2],["answer",2],["name",1],["if",1],["not",1],["update",1],["return",1]]},{"id":"tools/__init__.py#load_schemas","name":[["load",1],["schemas",1]],"path":[["tools",1],["init",1],["py",1]],"body":[["def",2],["load",2],["schemas",2],["list",2],["dict",2],["str",2],["any",2],["return",1],["json",1],["loads",1],["schema",1],["path",1],["read",1],["text",1],["encoding",1],["utf",1]]},{"id":"tools/__init__.py#openai_tools","name":[["openai",1],["tools",1]],"path":[["tools",1],["init",1],["py",1]],"body":[["def",2],["openai",2],["tools",3],["list",2],["dict",2],["str",2],["any",2],["wrap",1],["func",1],["load",2],["schemas",2],["as",1],["open",1],["ai",1],["chat",1],["completions",1],["return",1],["type",1],["function",2],["name",2],["schema",4],["description",2],["parameters",2]]},{"id":"tools/final_answer.py","name":[["final",1],["answer",1],["py",1]],"path":[["tools",1],["final",1],["answer",1],["py",1]],"body":[["final",3],["answer",3],["tool",2],["agent",1],["loop",1],["should",1],["treat",1],["successful",1],["call",1],["as",1],["stop",1],["from",2],["future",1],["import",2],["annotations",1],["typing",1],["callable",1],["name",1]]},{"id":"tools/final_answer.py#make_final_answer","name":[["make",1],["final",1],["answer",1]],"path":[["tools",1],["final",1],["answer",1],["py",1]],"body":[["def",3],["make",2],["final",4],["answer",6],["callable",2],["str",4],["return",2]]},{"id":"tools/final_answer.py#make_final_answer.final_answer","name":[["final",1],["answer",1]],"path":[["tools",1],["final",1],["answer",1],["py",1]],"body":[["def",2],["final",2],["answer",5],["str",4],["return",1]]},{"id":"tools/knowledge.py","name":[["knowledge",1],["py",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["external",1],["knowledge",1],["tools",1],["backed",1],["by",1],["sqlite",1],["root",1],["db",2],["kb",1],["jsonl",1],["from",4],["future",1],["import",5],["annotations",1],["json",1],["functools",1],["lru",2],["cache",2],["pathlib",1],["path",1],["typing",1],["any",1],["callable",1],["max",1],["full",1],["catalog",1],["chars",1],["12",1],["000",1],["maxsize",1],["64",1]]},{"id":"tools/knowledge.py#_kb_path","name":[["kb",1],["path",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["kb",3],["path",6],["sqlite",3],["root",3],["db",4],["str",2],["name",5],["strip",1],["lower",1],["if",1],["not",1],["replace",1],["isalnum",1],["raise",1],["value",1],["error",1],["invalid",1],["database",1],["return",1],["expanduser",1],["resolve",1],["jsonl",1]]},{"id":"tools/knowledge.py#_load_entries","name":[["load",1],["entries",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["load",2],["entries",5],["sqlite",3],["root",3],["str",10],["db",3],["tuple",3],["dict",3],["any",3],["path",6],["kb",1],["if",2],["not",3],["file",3],["raise",1],["found",2],["error",1],["knowledge",1],["list",1],["open",1],["encoding",1],["utf",1],["as",1],["handle",2],["line",3],["strip",1],["append",1],["json",1],["loads",1],["return",1]]},{"id":"tools/knowledge.py#_matches","name":[["matches",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["matches",2],["entry",4],["dict",2],["str",8],["any",2],["key",3],["db",4],["bool",3],["token",6],["strip",2],["if",4],["not",4],["return",5],["false",1],["eid",6],["id",2],["none",3],["true",3],["num",3],["numeric",1],["lower",5],["title",3],["knowledge",1]]},{"id":"tools/knowledge.py#_numeric_id","name":[["numeric",1],["id",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["numeric",2],["id",2],["key",3],["str",4],["db",3],["int",4],["none",3],["token",5],["strip",1],["if",3],["isdigit",2],["return",3],["prefix",3],["lower",2],["startswith",1],["suffix",3],["len",1]]},{"id":"tools/knowledge.py#make_knowledge_tools","name":[["make",1],["knowledge",1],["tools",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",5],["make",2],["knowledge",22],["tools",2],["sqlite",3],["root",5],["str",15],["path",3],["db",6],["dict",2],["callable",2],["return",8],["three",1],["catalog",3],["callables",1],["one",1],["database",3],["expanduser",1],["resolve",1],["entries",7],["load",1],["all",6],["external",3],["names",8],["entry",10],["strip",3],["if",5],["json",4],["dumps",4],["ensure",4],["ascii",4],["false",4],["definition",4],["name",3],["key",4],["not",2],["error",1],["required",1],["matches",1],["indent",3],["found",1],["definitions",3],["full",6],["list",1],["len",3],["max",1],["chars",2],["notice",1],["returning",1],["titles",1],["only",1],["call",1],["each",1],["metric",1],["you",1],["need",1],["count",1]]},{"id":"tools/knowledge.py#make_knowledge_tools.get_all_external_knowledge_names","name":[["all",1],["external",1],["knowledge",1],["names",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["all",2],["external",2],["knowledge",4],["names",4],["str",3],["entry",3],["strip",1],["entries",1],["if",1],["return",1],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1]]},{"id":"tools/knowledge.py#make_knowledge_tools.get_all_knowledge_definitions","name":[["all",1],["knowledge",1],["definitions",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["all",2],["knowledge",6],["definitions",2],["str",3],["full",6],["json",2],["dumps",2],["list",1],["entries",3],["ensure",2],["ascii",2],["false",2],["indent",2],["if",2],["len",3],["max",1],["catalog",2],["chars",2],["return",2],["names",3],["entry",4],["strip",1],["notice",1],["returning",1],["titles",1],["only",1],["call",1],["definition",1],["each",1],["metric",1],["you",1],["need",1],["database",1],["db",1],["count",1]]},{"id":"tools/knowledge.py#make_knowledge_tools.get_knowledge_definition","name":[["knowledge",1],["definition",1]],"path":[["tools",1],["knowledge",1],["py",1]],"body":[["def",2],["knowledge",7],["definition",2],["name",4],["str",4],["key",4],["strip",1],["if",2],["not",2],["return",3],["error",1],["required",1],["entry",3],["entries",1],["matches",1],["db",2],["json",1],["dumps",1],["ensure",1],["ascii",1],["false",1],["indent",1],["found",1],["database",1]]},{"id":"tools/run_sql.py","name":[["run",1],["sql",1],["py",1]],"path":[["tools",1],["run",1],["sql",1],["py",1]],"body":[["read",1],["only",1],["run",1],["sql",1],["tool",1],["over",1],["per",1],["task",1],["sqlite",3],["file",2],["from",4],["future",1],["import",5],["annotations",1],["sys",3],["pathlib",1],["path",4],["typing",1],["any",1],["callable",1],["root",3],["resolve",1],["parents",1],["if",1],["str",2],["not",1],["insert",1],["evaluation",1],["executor",1],["execute",1],["query",1]]},{"id":"tools/run_sql.py#make_run_sql","name":[["make",1],["run",1],["sql",1]],"path":[["tools",1],["run",1],["sql",1],["py",1]],"body":[["def",3],["make",2],["run",7],["sql",13],["sqlite",6],["db",7],["path",10],["str",7],["none",7],["max",4],["rows",4],["int",2],["500",2],["timeout",4],["float",2],["120",2],["callable",3],["return",6],["description",4],["expanduser",1],["resolve",1],["if",5],["not",4],["else",2],["text",6],["strip",3],["error",2],["empty",1],["query",2],["configured",1],["no",1],["database",1],["meta",2],["execute",1],["ok",1],["header",2]]},{"id":"tools/run_sql.py#make_run_sql.run_sql","name":[["run",1],["sql",1]],"path":[["tools",1],["run",1],["sql",1],["py",1]],"body":[["def",2],["run",4],["sql",10],["str",6],["description",4],["text",6],["strip",3],["if",4],["not",3],["return",4],["error",2],["empty",1],["query",2],["db",2],["path",2],["none",1],["configured",1],["no",1],["sqlite",2],["database",1],["meta",2],["execute",1],["max",2],["rows",2],["timeout",2],["ok",1],["header",2],["else",1]]},{"id":"tools/web_fetch.py","name":[["web",1],["fetch",1],["py",1]],"path":[["tools",1],["web",1],["fetch",1],["py",1]],"body":[["web",1],["fetch",2],["tool",1],["reference",1],["swap",1],["renderer",1],["if",1],["you",1],["need",1],["one",1],["from",2],["future",1],["import",5],["annotations",1],["html",1],["re",4],["urllib",1],["request",1],["typing",1],["callable",1],["tag",1],["compile",2],["script",2],["style",2],["ws",1],["max",1],["chars",1],["20",1],["000",1]]},{"id":"tools/web_fetch.py#fetch_url","name":[["fetch",1],["url",1]],"path":[["tools",1],["web",1],["fetch",1],["py",1]],"body":[["def",2],["fetch",3],["url",6],["str",4],["address",3],["strip",2],["if",3],["not",1],["return",2],["error",1],["empty",2],["request",5],["urllib",2],["headers",2],["user",1],["agent",1],["hybrid",1],["deep",1],["research",1],["public",1],["method",1],["urlopen",1],["timeout",1],["30",1],["as",1],["response",3],["raw",2],["read",1],["content",3],["type",3],["text",10],["decode",1],["utf",1],["errors",1],["replace",1],["html",3],["lower",2],["400",1],["unescape",1],["tag",1],["sub",2],["ws",1],["len",1],["max",2],["chars",2],["page",1]]},{"id":"tools/web_fetch.py#make_web_fetch","name":[["make",1],["web",1],["fetch",1]],"path":[["tools",1],["web",1],["fetch",1],["py",1]],"body":[["def",3],["make",2],["web",5],["fetch",9],["fn",3],["callable",4],["str",8],["none",4],["backend",2],["url",3],["try",1],["return",3],["except",1],["exception",1],["as",1],["exc",2],["error",1],["failed",1]]},{"id":"tools/web_fetch.py#make_web_fetch.web_fetch","name":[["web",1],["fetch",1]],"path":[["tools",1],["web",1],["fetch",1],["py",1]],"body":[["def",2],["web",3],["fetch",3],["url",3],["str",4],["try",1],["return",2],["backend",1],["except",1],["exception",1],["as",1],["exc",2],["error",1],["failed",1]]},{"id":"tools/web_search.py","name":[["web",1],["search",1],["py",1]],"path":[["tools",1],["web",1],["search",1],["py",1]],"body":[["web",1],["search",2],["tool",1],["attach",1],["your",1],["own",1],["backend",1],["names",1],["arguments",1],["fixed",1],["from",2],["future",1],["import",6],["annotations",1],["json",1],["os",1],["urllib",2],["parse",1],["request",1],["typing",1],["any",1],["callable",1],["default",1],["count",2],["10",1],["max",1],["20",1]]},{"id":"tools/web_search.py#format_hits","name":[["format",1],["hits",1]],"path":[["tools",1],["web",1],["search",1],["py",1]],"body":[["def",2],["format",2],["hits",6],["list",2],["dict",2],["str",8],["source",6],["if",1],["not",1],["return",2],["no",1],["results",1],["lines",3],["index",2],["hit",4],["enumerate",1],["append",1],["title",1],["url",1],["description",1],["join",1]]},{"id":"tools/web_search.py#make_web_search","name":[["make",1],["web",1],["search",1]],"path":[["tools",1],["web",1],["search",1],["py",1]],"body":[["def",3],["make",2],["web",6],["search",11],["fn",4],["callable",4],["str",12],["int",4],["tuple",2],["list",2],["dict",2],["none",4],["return",6],["query",4],["count",5],["10",1],["should",1],["hits",4],["source",3],["label",1],["each",1],["hit",1],["needs",1],["title",1],["url",1],["description",1],["if",2],["omitted",1],["tavily",3],["api",1],["key",1],["present",1],["backend",2],["default",1],["strip",1],["not",1],["error",2],["empty",1],["max",2],["min",1],["try",1],["except",1],["exception",1],["as",1],["exc",2],["failed",1],["format",1]]},{"id":"tools/web_search.py#make_web_search.web_search","name":[["web",1],["search",1]],"path":[["tools",1],["web",1],["search",1],["py",1]],"body":[["def",2],["web",3],["search",3],["query",4],["str",4],["count",6],["int",3],["default",2],["strip",1],["if",1],["not",1],["return",3],["error",2],["empty",1],["max",2],["min",1],["try",1],["hits",3],["source",2],["backend",1],["except",1],["exception",1],["as",1],["exc",2],["failed",1],["format",1]]},{"id":"tools/web_search.py#tavily_search","name":[["tavily",1],["search",1]],"path":[["tools",1],["web",1],["search",1],["py",1]],"body":[["def",2],["tavily",8],["search",3],["query",4],["str",11],["count",3],["int",2],["tuple",2],["list",2],["dict",2],["optional",1],["backend",1],["requires",1],["api",8],["key",7],["os",1],["environ",1],["strip",1],["if",1],["not",2],["raise",1],["runtime",1],["error",1],["payload",2],["json",3],["dumps",1],["max",1],["results",2],["include",1],["answer",1],["false",1],["encode",1],["utf",2],["request",5],["urllib",2],["https",1],["com",1],["data",1],["headers",1],["content",2],["type",1],["application",1],["method",1],["post",1],["urlopen",1],["timeout",1],["30",1],["as",1],["response",2],["body",2],["loads",1],["read",1],["decode",1],["hits",2],["title",2],["item",5],["url",2],["description",1],["snippet",1],["return",1]]}]}
