opto.trace.operators¶
swapcase ¶
Swaps the case of all characters: uppercase character to lowercase and vice-versa.
split ¶
Splits the string by finding a substring y in string x, return the first part and second part of string x without y.
replace ¶
Replaces all occurrences of substring y in string x with z.
join ¶
Joins a sequence y with different strs with x: " ".join(["a", "b", "c"]) -> "a b c".
call ¶
This operator calls the function fun
with args (args_0, args_1, etc.) and kwargs. If there are no args or kwargs, i.e. call(fun=function_name), the function takes no input.
set_intersection_update ¶
Update x with the intersection of x and y.
set_symmetric_difference_update ¶
Update x with the symmetric difference of x and y.
call_llm ¶
Query the language model of system_prompt with user_prompts.