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

Method field

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

Lookup the field at the given path, and return its value. Parameters ---------- path: Path of the field to lookup, encoded as an array of field names

(self, path: list[str])

Source from the content-addressed store, hash-verified

10495 return await _ctx.execute(JSON)
10496
10497 def field(self, path: list[str]) -> Self:
10498 """Lookup the field at the given path, and return its value.
10499
10500 Parameters
10501 ----------
10502 path:
10503 Path of the field to lookup, encoded as an array of field names
10504 """
10505 _args = [
10506 Arg("path", path),
10507 ]
10508 _ctx = self._select("field", _args)
10509 return JSONValue(_ctx)
10510
10511 async def fields(self) -> list[str]:
10512 """List fields of the encoded object

Callers 3

FieldClass · 0.45
ContextClass · 0.45
ConnectConfigClass · 0.45

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
JSONValueClass · 0.70

Tested by

no test coverage detected