MCPcopy Create free account
hub / github.com/cloudflare/agents / parent

Method parent

examples/assistant/src/server.ts:606–609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

604 constructor(private child: Pick<MyAssistant, "parentAgent">) {}
605
606 private parent(): Promise<DurableObjectStub<AssistantDirectory>> {
607 this.#stubPromise ??= this.child.parentAgent(AssistantDirectory);
608 return this.#stubPromise;
609 }
610
611 async readFile(path: string) {
612 return (await this.parent()).readFile(path);

Callers 15

readFileMethod · 0.95
readFileBytesMethod · 0.95
writeFileMethod · 0.95
writeFileBytesMethod · 0.95
appendFileMethod · 0.95
existsMethod · 0.95
readDirMethod · 0.95
rmMethod · 0.95
globMethod · 0.95
mkdirMethod · 0.95
statMethod · 0.95
lstatMethod · 0.95

Calls 1

parentAgentMethod · 0.80

Tested by

no test coverage detected