ElGraph.Demo (ElGraph v0.3.0)

Copy Markdown View Source

도그푸딩 데모: ElGraph 문서 Q&A 에이전트의 supervision 트리 (SPEC §8 M3 완료 기준).

{:ok, _pid} = ElGraph.Demo.start_link([])     # 실 OpenAI 키 (config/secrets.exs)
ElGraph.Demo.ask("체크포인트 보존 정책이 뭐야?")
# reply_to 프로세스가 {:demo_answer, answer}를 받는다

상시 구동: mix run --no-halt scripts/demo.exs 실행 관측: ElGraph.Demo.runs() (Runner introspection)

트리 구성(rest_for_one): 에이전트 Registry → introspection Registry → ETS 체크포인터(keep: {:last, 50}) → RateLimiter(limit 3) → DocsAgent.

Summary

Functions

에이전트에 질문을 보낸다 (비동기 — 답은 reply_to로 온다).

Returns a specification to start this module under a supervisor.

도그푸딩 데모가 검색하는 저장소 루트 docs/ 디렉터리의 *.md glob (CWD 비의존).

실행 중인 그래프 run 목록 (introspection).

Functions

ask(question)

@spec ask(String.t()) :: :ok

에이전트에 질문을 보낸다 (비동기 — 답은 reply_to로 온다).

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

docs_glob()

도그푸딩 데모가 검색하는 저장소 루트 docs/ 디렉터리의 *.md glob (CWD 비의존).

runs()

실행 중인 그래프 run 목록 (introspection).

start_link(opts \\ [])