MCPcopy Create free account
hub / github.com/dagger/dagger / current_function_call

Method current_function_call

sdk/python/src/dagger/client/gen.py:12846–12855  ·  view source on GitHub ↗

The FunctionCall context that the SDK caller is currently executing in. If the caller is not currently executing in a function, this will return an error.

(self)

Source from the content-addressed store, hash-verified

12844 return Env(_ctx)
12845
12846 def current_function_call(self) -> FunctionCall:
12847 """The FunctionCall context that the SDK caller is currently executing
12848 in.
12849
12850 If the caller is not currently executing in a function, this will
12851 return an error.
12852 """
12853 _args: list[Arg] = []
12854 _ctx = self._select("currentFunctionCall", _args)
12855 return FunctionCall(_ctx)
12856
12857 def current_module(self) -> CurrentModule:
12858 """The module currently being served in the session, if any."""

Callers 3

serveMethod · 0.80
invokeMethod · 0.80
record_exceptionFunction · 0.80

Calls 2

_selectMethod · 0.80
FunctionCallClass · 0.70

Tested by

no test coverage detected