Package genlayer.std.nondet_fns#

Warning

This is an internal module

class genlayer.std.nondet_fns.ExecPromptKwArgs[source]#
class genlayer.std.nondet_fns.GetWebpageKwArgs[source]#
mode: Literal['html', 'text']#

Mode in which to return the result

genlayer.std.nondet_fns.exec_prompt(prompt: str, **config: Unpack[ExecPromptKwArgs]) str[source]#

API to execute a prompt (perform NLP)

Parameters:
Return type:

str

Note

supports .lazy() version, which will return Lazy

genlayer.std.nondet_fns.get_webpage(url: str, **config: Unpack[GetWebpageKwArgs]) str[source]#

API to get a webpage after rendering it

Parameters:
Return type:

str

Note

supports .lazy() version, which will return Lazy