Skip to content

AgentExpressContext support - #510

Open
supreethmurthy wants to merge 5 commits into
salesforcecli:mainfrom
supreethmurthy:supreeth-murthy/express-context
Open

supreethmurthy wants to merge 5 commits into
salesforcecli:mainfrom
supreethmurthy:supreeth-murthy/express-context

Conversation

@supreethmurthy

Copy link
Copy Markdown

This PR will create agentforce express context libraries, upload files, index them.

Supreeth Murthy and others added 2 commits October 8, 2026 13:35
Adds create, upload, list, get, status, files and delete commands for
Agentforce Express Context libraries.

create takes --file (repeatable), prompts for the authoring bundle, subagent,
action label and description before any org call, then creates the library
("<subagent label> Express"), uploads the files and polls indexing (2s, 10 min).
Once indexed, it adds a local retriever action to the subagent, using the
platform-created global retriever action (GenAiFunctionDefinition) as the
action name and source, plus a reasoning.actions reference. On partial
success or timeout the user can continue, retry once or abort; on failure the
library and its retriever action are cleaned up after confirmation.

upload adds files to an existing library with the same polling, and cleans up
only the files from that run.

Requires the AgentExpressContext client from @salesforce/agents.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! It looks like @supreeth-murthy_sfemu is an internal user so signing the CLA is not required. However, we need to confirm this.

@nico-pappagianis

Copy link
Copy Markdown
Collaborator

@supreethmurthy please have your coding agent review these code review files.
Typically blocking, high, and medium severity findings are sound. Medium and low severity findings can often be pushed back on and deferred.
Thanks!
330ad62.zip

Supreeth Murthy and others added 3 commits November 2, 2026 11:55
…nd tests

- addRetrieverAction pads inserted lines with the bundle's own indent (tabs or
  spaces) and refuses a subagent that mixes the two instead of corrupting it.
- uploadAndWait builds the SFDrive-to-local map from the SDK's files[] pairing
  rather than by array index.
- Note that `with searchText = ...` is Agent Script slot-fill syntax.
- Tests: tab/mixed indentation, out-of-order upload pairing, and the list, get,
  status, files and delete commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… action, page files

KNOWN BLOCKER: package.json still depends on @salesforce/agents ^2.3.0, which
does not export AgentExpressContext. This PR builds and tests only against a
local yarn link of forcedotcom/agents#384. Bump @salesforce/agents to the
release that contains salesforcecli#384 before merging; a clean install fails until then.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@salesforce-cla

salesforce-cla Bot commented Nov 2, 2026

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @supreethmurthy to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants