HAVE AI NEWS HAVE AI NEWS
tg subscribe
Software Development

API for Agents: Why Navigation Matters More Than a File List

By: HAVE AI NEWS desk Updated #AI Agents #Enterprise AI #AI Context #API #AGIMA
API for Agents: Why Navigation Matters More Than a File List

An API for an AI agent should help it choose sources and navigate a project, rather than merely open files. We examine relationships, descriptions, and how to verify the basis of an answer.

Viktor Kosymov, AI Architect at AGIMA, explains why an API for an AI agent should describe not only files, but also the relationships between project materials. Using integration requirements as an example, he shows how an agent selects the right meeting, finds the original proposal, and separates confirmed facts from assumptions.

Why a File List Is Not Enough

In a web interface, an employee can see the project structure: its name, meetings, client card, and related materials. An agent given only a list of paths can access the content, but it lacks enough guidance to choose its next step.

For example, the name meeting_12.txt makes it difficult to tell whether integration requirements were discussed there. To find the answer, the agent would have to open the files one by one.

In the first article, the author examined how AGIMA’s “Ontology” preserves shared context. Here, the same question is explored from the API developer’s perspective: what data does an agent need for navigation, and where does an overview end and verification against primary sources begin?

Two Views of the Same Materials

Suppose the agent can retrieve a project and read a file by address. The simplest API might return only a list of locations:

project: p1
files:
 - path: docs/requirements_v3.md
 read: /files/f1
 - path: meetings/meeting_12.txt
 read: /files/f2
 - path: meetings/meeting_13.txt
 read: /files/f3
 - path: archive/proposal.pdf
 read: /files/f4

This response makes it possible to open any source, but it does not explain which meeting concerns the integration or what exactly is in the archived proposal.

A more useful representation connects the materials to their role in the project:

project:
 id: p1
 title: Partner Portal
 documents:
 - title: Integration Requirements
 read: /files/f1
 meetings:
 - title: Integration Working Meeting
 summary: Discussed changing the authorization flow and missing access permissions.
 read: /files/f2
 - title: Design Meeting
 summary: Discussed account dashboard navigation.
 read: /files/f3
 relations:
 - rel: originating_lead
 title: Original Client Request
 hint: Project background and the initial proposal.
 open: /leads/l1

With the second version, the agent can first open the integration meeting and skip the design discussion. To check the original promises, it has a separate link to the original client request.

What the Agent Needs

Different fields serve different functions:

  • title helps explain the purpose of a document or meeting;
  • summary helps determine whether the full source is worth opening;
  • rel describes the type of relationship between objects;
  • hint explains why the next link is needed;
  • read and open specify the action address.

The help reference answers a different question: which operations the API supports at all. It can describe reading documents and meetings, working with folders, uploading files, and retrieving links. But the reference does not show which meeting changed the requirements. That becomes clear only after opening the project card.

In version 0.7.3 of the “Ontology” client, the distinction between a relationship and a link is visible in the implementation. The client reads the rel and href fields and uses a familiar address prefix to build a command for opening the related object. If it cannot build the command, it displays the hint provided by the server, when available.

How the Agent Builds an Answer About Changed Requirements

To answer why the integration requirements changed and what was promised to the client, the agent needs to check three directions:

  1. Current state. In the specification, it finds the current requirement, such as checking the partner’s permissions before exchanging orders.
  2. Reason for the change. The meeting descriptions point to the integration discussion, after which the agent reads the record itself and verifies the basis for the change.
  3. Original conditions. The presales materials are searched for the original proposal and its status. Calling an item an agreed promise requires confirmation from the client.

After following the link to the original lead, the agent receives an additional map of materials:

lead:
 id: l1
 title: Original Client Request
 documents:
 - title: Initial Proposal
 description: Proposed scope of work and estimate assumptions.
 read: /files/f4

In the example, the specification contains an authorization requirement, the manager links the change to a request from the client’s service team, and the initial proposal includes order exchange. However, the sources reviewed contain no confirmation that the client approved this particular version.

The current specification requires checking the partner’s permissions before exchanging orders [requirements, f1]. According to the manager, the client’s service team requested this check [meeting, f2]. Order exchange was included in the initial proposal [proposal, f4]. Based on these materials, I cannot confirm that the client approved this particular version.

This answer separates established facts from gaps in the materials. If an approved contract addendum is found later, it can be compared with the final statement without revisiting the already confirmed reason for the change.

An Overview Helps Choose a Source, but Does Not Replace It

A brief meeting description is intended for selection, not for the final conclusion. It helps choose the right transcript, but the reason for the change can be explained only after reading the discussion itself.

Context can be revealed in stages: first show the project overview, then open the selected source and, if necessary, request the full text or the next page of the list. This is especially important when meetings and documents are returned in batches.

A connected overview takes up more space than four file paths. Therefore, task costs depend on the size of the navigation information and on which materials the agent opens next. Savings in requests and gains in accuracy should be checked through measurement rather than treated as an established result in advance.

How to Describe Old Files with Unclear Names

In old repositories and Confluence spaces, a document’s purpose may not be clear from its name. Even after following the link to the right folder, the agent may have to inspect the files one by one.

The team is considering automatic labeling for files and folders: a small model reads the changed material together with neighboring sources and creates a short description. Example output:

folder:
 path: integration/
 description: Integration requirements and discussion of the conditions for checking them.
 files:
 - name: spec_v3.md
 description: Authorization and order exchange. Access questions remain open.
 read: /files/f5
 - name: meeting_14.txt
 description: Discussion of test access and the conditions for starting the check.
 read: /files/f6

Automatic annotation has a limitation: it may accurately describe an old specification even though the conditions changed at a later meeting. That is why the source date and version matter in navigation. When the wording differs, the agent should show both versions and indicate which one was approved, if the documents make that possible.

How to Test the API with a Small Set

Four materials are enough for a practical test:

  • the current specification;
  • the transcript of the meeting about the change;
  • the record of a meeting on another topic;
  • the initial proposal.

Before running the test, define three reference points: the current requirement, the reason for the change, and the proposal’s status. For each one, specify the supporting passage. If approval is missing, record that as well.

Then prepare two versions of the input data. In the first, the agent receives only a list of paths. In the second, add meeting titles, relationship types, and available links. The files, permissions, model, reading tools, and question should remain the same. Each version should be run several times in new sessions, counting the reading of the reference and additional links.

For each run, record:

  • how many of the three points were confirmed by the correct sources;
  • whether the agent opened an unrelated meeting;
  • how many API calls it made;
  • how many input tokens it required;
  • whether it made an error about approval of the proposal.

A shorter route that produces an incorrect claim about the client’s approval cannot be considered an improvement. As an additional check, remove the link to the required meeting from the overview while leaving the transcript available in the folder. If the agent cannot find the source another way, check whether it reports the lack of data. This helps assess the cost of an incomplete project map and identify where additional descriptions are actually needed.

Original byline: victorkosmo

Source: habr.com

Zocdoc prepares for a world where AI agents matter more than websites
Healthcare

Zocdoc prepares for a world where AI agents matter more than websites

Zocdoc is opening its infrastructure to AI agents that book doctor appointments. CEO Oliver Kharraz believes data verification, trust, and reliable execution of complex transactions will become critical advantages in healthcare.

How Leave a Nest’s CIO used an AI agent to catch an outdated slide
Tools

How Leave a Nest’s CIO used an AI agent to catch an outdated slide

George Yoshida’s AI agent flagged an outdated statement in a presentation and helps him review employee requests to change ChatGPT usage limits in Slack.

OpenAI and Salesforce expand partnership on ChatGPT workflows
Business

OpenAI and Salesforce expand partnership on ChatGPT workflows

The expanded partnership brings Salesforce sales, marketing and revenue workflows into ChatGPT and gives Salesforce employees access to ChatGPT Enterprise and Codex.

Ora raises $75 million to make websites easier for AI agents to use
Business

Ora raises $75 million to make websites easier for AI agents to use

San Francisco startup Ora has secured $75 million from Sequoia Capital, Index Ventures and Bessemer Venture Partners to help businesses adapt their websites for AI agents. The company says its platform identifies where agents get stuck and helps improve their ability to find information and complete tasks.

OpenAI and AWS Expand Partnership in AI and Cybersecurity
Cybersecurity

OpenAI and AWS Expand Partnership in AI and Cybersecurity

OpenAI and AWS have introduced new cyber defense tools, Daybreak model credits, and a joint engineering program to help companies deploy AI.

AWS will let enterprises run Anthropic’s Claude in their own data centers
Tools

AWS will let enterprises run Anthropic’s Claude in their own data centers

AWS is bringing Claude to customer data centers through AI Factories and Bedrock. Nitro v7 is designed to keep enterprise data inaccessible to AWS and Anthropic.