Syntropy.TaskScheduler.SourceInquiry
(syntropy v0.3.0)
Copy Markdown
Source-review inquiry pipeline for task runs.
Expands the static source-review evidence packet through the librarian source tool, either by executing a model-planned inquiry (parsed from strict JSON) or the deterministic read-only fallback. Also assesses inquiry quality for run envelopes and aggregates per-attempt inquiry metadata.
Summary
Functions
Inquiry quality shown while a run is still executing.
Empty inquiry metadata for runs without source-review expansion.
Flattens expanded evidence across all agent attempts.
Inquiry quality for runs that failed before inquiry expansion completed.
Assesses inquiry quality for a finished run from its attempts and the attached source review/tool context.
Flattens inquiry rounds across all agent attempts.
Expands source evidence for one agent when both a source review and a source tool are attached; otherwise passes the review through untouched.
Attaches expanded evidence to the source review packet.
Flattens source-tool attempts across all agent attempts.
Bounded source-tool timeout parsed from the source tool context.
Types
Functions
Inquiry quality shown while a run is still executing.
@spec empty_inquiry_meta() :: inquiry_meta()
Empty inquiry metadata for runs without source-review expansion.
Flattens expanded evidence across all agent attempts.
Inquiry quality for runs that failed before inquiry expansion completed.
Assesses inquiry quality for a finished run from its attempts and the attached source review/tool context.
Flattens inquiry rounds across all agent attempts.
@spec maybe_expand_source_evidence(map(), String.t(), map() | nil, map() | nil) :: {map() | nil, inquiry_meta()}
Expands source evidence for one agent when both a source review and a source tool are attached; otherwise passes the review through untouched.
Returns {source_review_for_agent, inquiry_meta}.
Attaches expanded evidence to the source review packet.
Flattens source-tool attempts across all agent attempts.
@spec tool_timeout_ms(map()) :: pos_integer()
Bounded source-tool timeout parsed from the source tool context.