DEV Community

Cover image for Fan out internal APIs into one cited answer
Conor Bronsdon
Conor Bronsdon

Posted on Originally published at chainofthought.show

Fan out internal APIs into one cited answer

The practical way to aggregate answers across enterprise systems is a fan-out with a deadline on every call. Query each internal API on its own timeout, drop the calls that miss it, and return one short answer plus the ids of the sources that returned text. Jeetu Patel named an infrastructure constraint on AI generally: not enough power, compute, network bandwidth, and data center capacity, with infrastructure as the input and intelligence as the output.

Jeetu Patel is president and chief product officer at Cisco. He spoke on Chain of Thought in November 2025, separating a succinct answer over the corpus of data available in the world from the original insights he expects AI to produce later.

How do you return one cited answer from several internal APIs?

Run the sources in parallel, enforce a timeout inside each fetch, and summarize only the payloads that came back with their ids attached. One deadline wrapped around the whole batch hides which system stalled. A summary with no ids hides which sentence came from which system of record.

A minimal sketch to adapt, not a drop-in library.

import concurrent.futures

def aggregate_answer(question, sources, timeout_s):
    if not sources:
        return {"answer": None, "citations": []}
    payloads = []
    with concurrent.futures.ThreadPoolExecutor(max_workers=len(sources)) as pool:
        jobs = {
            pool.submit(fetch_source, source, question, timeout_s): source["id"]
            for source in sources
        }
        for job in concurrent.futures.as_completed(jobs):
            source_id = jobs[job]
            try:
                text = job.result()
            except Exception:
                continue
            if not text:
                continue
            payloads.append({"id": source_id, "text": text})
    if not payloads:
        return {"answer": None, "citations": []}
    citations = [item["id"] for item in payloads]
    return {"answer": summarize(question, payloads), "citations": citations}
Enter fullscreen mode Exit fullscreen mode

fetch_source and summarize are stand-ins. The timeout belongs in fetch_source, so a slow ticket API cannot pin the worker for the life of the request. If every source fails or times out, return no answer. Calling the model on an empty list is how you get a fluent paragraph with nothing behind it.

Two checks sit beside the model. Refuse to emit a sentence that names a source id you did not pass in. Store the question, the ids you attempted, and the ids that returned, so you can replay a bad answer later.

What infrastructure constraint did Patel name?

Power, compute, network bandwidth, and data center capacity. Patel named infrastructure as the first of three impediments that can hold AI back.

There is just not enough power, compute, network bandwidth, and data center capacity to go satiate the needs of AI. And the constraint for infrastructure is directly correlated to a company and a country's ability to to have intelligence. Infrastructure is the input. Intelligence is the output.

Jeetu Patel, President and Chief Product Officer at Cisco, on Chain of Thought ep 44

The Critical Infrastructure Be… - Chain of Thought | AI Agents, Infrastructure & Engineering - Apple Podcasts

Podcast Episode · Chain of Thought | AI Agents, Infrastructure & Engineering · November 19, 2025 · 1h 18m

favicon podcasts.apple.com

At the scale of one endpoint, the same scarcity shows up as a budget. Keep the per-source timeout shorter than the budget you promised the caller, and leave time for summarize after the fan-out. Sending every question to the largest model you can call spends compute on a job that may not need it. For a cited readout over a handful of internal APIs, pick the smallest model that stays faithful to the payloads you handed it.

How much of the benefit is the succinct answer?

Patel framed a succinct answer over data that is already available as like 1% of the benefit. He put the other 99% in original insights that do not exist in the human corpus of knowledge.

I feel like that's, that's like 1% of the benefit.

Jeetu Patel, President and Chief Product Officer at Cisco, on Chain of Thought ep 44

Write the endpoint's contract to match that smaller job. It returns a short answer grounded in systems you operate, with citations. If the payloads do not cover the question, return the citations and an empty answer. A paragraph that sounds resolved, with no source behind it, is a failed request.

He described three levels of maturity with these tools. Level one is the fear that AI takes the job. Level two is the risk that someone who uses AI better takes the job. Level three is finding it hard to get the job done without AI, the way he said you cannot get a finance job now without understanding the spreadsheet. Jobs you do not have time to do by hand are a separate first category of work he said people will hand to AI.

A second constraint he named on AI is what he called a trust deficit. Models are by definition nondeterministic, which means they are unpredictable, while the applications built on them are meant to be highly predictable.

And what I mean by a trust deficit is these systems that AI is built on, these models, are by definition nondeterministic in nature, which means that they're unpredictable.

Jeetu Patel, President and Chief Product Officer at Cisco, on Chain of Thought ep 44

Pass only retrieved text into summarize. Compare any source ids in the output with the ids you supplied. If they diverge, discard the prose and return the payload ids alone. Show those citations so a reader can see what the answer was based on.

FAQ

What are the three constraints Patel named?
Infrastructure, a trust deficit, and a data gap. He described infrastructure as not enough power, compute, network bandwidth, and data center capacity. The trust side is nondeterministic models under applications that are supposed to be predictable. On data, he said you are running out of human-generated data publicly available on the Internet, that plenty of evidence is building that synthetic data is starting to show very efficacious outcomes, and that machine data in logs, metrics, events, and traces is not effectively used by models.

Should one slow API fail the whole answer?
No. Treat a timeout or an exception as a missing source, and summarize the payloads that remain. If none remain, return an empty answer and an empty citation list.

Is the 1% figure a measured share of AI's value?
No. Patel said a succinct answer from data that is already available is like 1% of the benefit, and that 99% would come from original insights that do not exist in the human corpus. Those figures are his framing on this episode.

Takeaway

  • Call internal APIs in parallel, with a timeout inside each fetch.
  • Summarize only payloads that returned text.
  • Return source ids beside the answer.
  • If every source misses, return no answer.
  • Budget the fan-out: per-source timeouts inside the caller's deadline, and the smallest model that stays faithful to the payloads.

The full conversation, with the transcript, is on Chain of Thought.

Subscribe to the Chain of Thought newsletter for new episodes and write-ups like this one.

Drafted with AI assistance from the episode transcripts.

Top comments (0)