@salesforce/agentic-common 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/summary-prompt.d.ts +9 -0
- package/dist/summary-prompt.js +19 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export { LogBus, type LogLevel, type LogRecord } from './log.js';
|
|
|
8
8
|
export { type FrontmatterSplit, splitFrontmatterAndBody } from './markdown-frontmatter.js';
|
|
9
9
|
export { BackoffRetryer, DEFAULT_RETRY_OPTIONS, NoOpRetryer, type Retryer, type RetryAttemptInfo, type RetryCallbacks, type RetryExhaustedInfo, type RetryOptions, } from './retryer.js';
|
|
10
10
|
export { SfApiEnv } from './sf-api-env.js';
|
|
11
|
+
export { buildSummaryPrompt } from './summary-prompt.js';
|
package/dist/index.js
CHANGED
|
@@ -12,4 +12,5 @@ export { LogBus } from './log.js';
|
|
|
12
12
|
export { splitFrontmatterAndBody } from './markdown-frontmatter.js';
|
|
13
13
|
export { BackoffRetryer, DEFAULT_RETRY_OPTIONS, NoOpRetryer, } from './retryer.js';
|
|
14
14
|
export { SfApiEnv } from './sf-api-env.js';
|
|
15
|
+
export { buildSummaryPrompt } from './summary-prompt.js';
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the user-side prompt for `compactThread`'s one-shot summary call.
|
|
3
|
+
* Shared across harness implementations so cross-harness compaction observable
|
|
4
|
+
* behavior is identical (same instructions to the model, same transcript
|
|
5
|
+
* shape). Harness-specific framing (e.g. a Claude `systemPrompt` reinforcing
|
|
6
|
+
* the summarization role for an ephemeral session that has no agent rules)
|
|
7
|
+
* stays in the harness; only the user-message body is shared.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildSummaryPrompt(transcript: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc. All rights reserved.
|
|
3
|
+
* See LICENSE.txt for license terms.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Builds the user-side prompt for `compactThread`'s one-shot summary call.
|
|
7
|
+
* Shared across harness implementations so cross-harness compaction observable
|
|
8
|
+
* behavior is identical (same instructions to the model, same transcript
|
|
9
|
+
* shape). Harness-specific framing (e.g. a Claude `systemPrompt` reinforcing
|
|
10
|
+
* the summarization role for an ephemeral session that has no agent rules)
|
|
11
|
+
* stays in the harness; only the user-message body is shared.
|
|
12
|
+
*/
|
|
13
|
+
export function buildSummaryPrompt(transcript) {
|
|
14
|
+
return ('Summarize the following conversation into a concise context summary. ' +
|
|
15
|
+
'Preserve key decisions, facts, and action items. ' +
|
|
16
|
+
'Write in third person as a factual record.\n\n' +
|
|
17
|
+
transcript);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=summary-prompt.js.map
|