Method
list
(
self,
*,
presence: str = "any",
q: str | None = None,
limit: int = 100,
cursor: str | None = None,
)
Source from the content-addressed store, hash-verified
| 33 | options = pb.AskOptions(attachment_ids=attachments) |
| 34 | for name, value in ( |
| 35 | ("pin", pin), |
| 36 | ("session", session), |
| 37 | ("engine", engine), |
| 38 | ("working_dir", working_dir), |
| 39 | ("project_root_id", project_root_id), |
| 40 | ("model", model), |
| 41 | ): |
| 42 | if value is not None: |
| 43 | setattr(options, name, value) |
| 44 | return self._t.call_stream( |
| 45 | pb.Envelope( |
| 46 | ask_machine_req=pb.AskMachineRequest( |
| 47 | machine_id=str(machine_id), prompt=prompt, options=options |
| 48 | ) |
| 49 | ) |
| 50 | ) |
| 51 | |
Tested by
no test coverage detected