MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _cmd_ask

Function _cmd_ask

agents/wiki-agent/main.py:92–102  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

90
91
92def _cmd_ask(args: argparse.Namespace) -> int:
93 result = answer_module.answer_question(args.user_id, args.question, limit=args.limit)
94 if args.json:
95 print(json.dumps(result, ensure_ascii=False, indent=2))
96 return 0
97 print(result["text"])
98 if result.get("citations"):
99 print("\nSources:")
100 for citation in result["citations"]:
101 print(f"[{citation['index']}] {citation['title']} ({citation['node_id']})")
102 return 0
103
104
105def _cmd_backfill(args: argparse.Namespace) -> int:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected