mellea.stdlib.genslot
mellea.stdlib.genslot.create_response_format(func: Callable[..., R])
func
: A function with exactly one argumentmellea.stdlib.genslot.describe_function(func: Callable)
func
: Callable function that needs to be passed to generative slot.FunctionDict
: Function dict of the passed function.mellea.stdlib.genslot.get_annotation(func: Callable, key: str, val: Any)
func
: Callable Functionkey
: Arg keysval
: Arg Valuesstr
: An annotated string for a given func.mellea.stdlib.genslot.bind_function_arguments(func: Callable[P, R], *args: P.args, **kwargs: P.kwargs)
func
: The function to bind arguments for. *args: Positional arguments to bind. **kwargs: Keyword arguments to bind.mellea.stdlib.genslot.generative(func: Callable[P, R])
func
: Function with docstring and type hints. Implementation can be empty (…).class mellea.stdlib.genslot.FunctionResponse()
class mellea.stdlib.genslot.FunctionDict()
class mellea.stdlib.genslot.ArgumentDict()
class mellea.stdlib.genslot.Argument(annotation: str | None = None, name: str | None = None, value: str | None = None)
class mellea.stdlib.genslot.Function(func: Callable)
class mellea.stdlib.genslot.GenerativeSlot(func: Callable[P, R])
func
to a generative slot.
func
: A callable functionmellea.stdlib.genslot.GenerativeSlot.__call__(m, model_options: dict | None = None, *args: P.args, **kwargs: P.kwargs)
m
: MelleaSession
: A mellea session **kwargs: Additional Kwargs to be passed to the funcModelOutputThunk
: Output with generated Thunk.mellea.stdlib.genslot.GenerativeSlot.parts()
mellea.stdlib.genslot.GenerativeSlot.format_for_llm()