This repository was archived by the owner on May 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
bigframes/bigquery/_operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727from bigframes .core import convert , log_adapter
2828from bigframes .operations import ai_ops
2929
30+ PROMPT_TYPE = (
31+ series .Series
32+ | pd .Series
33+ | List [str | series .Series | pd .Series ]
34+ | Tuple [str | series .Series | pd .Series , ...]
35+ )
36+
3037
3138@log_adapter .method_logger (custom_base_name = "bigquery_ai" )
3239def generate_bool (
33- prompt : series .Series
34- | pd .Series
35- | List [str | series .Series | pd .Series ]
36- | Tuple [str | series .Series | pd .Series , ...],
40+ prompt : PROMPT_TYPE ,
3741 * ,
3842 connection_id : str | None = None ,
3943 endpoint : str | None = None ,
@@ -127,7 +131,7 @@ def generate_bool(
127131
128132
129133def _separate_context_and_series (
130- prompt : series . Series | List [ str | series . Series ] | Tuple [ str | series . Series , ...] ,
134+ prompt : PROMPT_TYPE ,
131135) -> Tuple [List [str | None ], List [series .Series ]]:
132136 """
133137 Returns the two values. The first value is the prompt with all series replaced by None. The second value is all the series
You can’t perform that action at this time.
0 commit comments