Skip to content

Commit bcb1644

Browse files
committed
[Improve] Show Auto more of what the agent read
Auto was shown the newest 8 tool results and the first 1,500 characters of each. When the agent looked a person or an item up in a longer listing, or made a few more calls before using the id it found, the lookup was cut off or dropped, so the model could not see what the id referred to and asked for approval. It is now shown the newest 20 results, up to 6,000 characters of each and 16,000 across them.
1 parent 80d01c8 commit bcb1644

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎packages/cloud-agents/src/server/__tests__/integration-tool-auto-evaluation.test.ts‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/cloud-agents/src/server/integration-tool-auto-identifiers.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ import {
33
redactIntegrationToolArgs,
44
} from '@roomote/types';
55

6-
const MAX_SESSION_TOOL_RESULTS = 8;
7-
const MAX_SESSION_TOOL_RESULT_LENGTH = 1_500;
8-
const MAX_SESSION_TOOL_RESULTS_LENGTH = 6_000;
6+
/**
7+
* Enough results, and enough of each, that a lookup is still in view when
8+
* the agent uses what it found: it often looks a person or an item up in a
9+
* long listing, makes a few more calls, and then uses the id from that
10+
* listing. The total below bounds what is shown, newest first.
11+
*/
12+
const MAX_SESSION_TOOL_RESULTS = 20;
13+
const MAX_SESSION_TOOL_RESULT_LENGTH = 6_000;
14+
const MAX_SESSION_TOOL_RESULTS_LENGTH = 16_000;
915

1016
export type IntegrationToolAutoToolResult = {
1117
/** `integration.tool` */

0 commit comments

Comments
 (0)