Skip to content

W-18562558 Adopt and Test amf-helper-mixin Methods#73

Merged
alexpmule merged 8 commits intomasterfrom
W-18562558/Adopt-and-Test-amf-helper-mixin-Methods
Jul 11, 2025
Merged

W-18562558 Adopt and Test amf-helper-mixin Methods#73
alexpmule merged 8 commits intomasterfrom
W-18562558/Adopt-and-Test-amf-helper-mixin-Methods

Conversation

@alexpmule
Copy link
Contributor

@alexpmule alexpmule commented Jul 11, 2025

PR Description: Support Agent Topic Metadata in API Console

Overview

This PR implements support for agent topic metadata in the API Console, enabling display of agent-related data (e.g., dataName, classificationDescription, instructions, scope) in the navigation bar, documentation panel, and other components. It addresses the challenge of accessing metadata from AMF nodes with dynamic amf://id# IDs.

Changes

  • AmfHelperMixin:
  • Added _computeAgents: Extracts agent metadata from AMF nodes by locating amf://id# keys.
  • Added _computeTopics: Retrieves topic metadata (e.g., name, instructions) for each agent, handling dynamic IDs and array/single-object cases.
  • Added ensureObject: Helper to normalize array inputs.

Namespace.js:

  • Added keys: agent, topic, classificationDescription, instructions, name, scope to map to OAS x-sfdc.agent fields.

Version Bump:

  • Updated package.json to 4.5.30.

…he action to v3, and implement matrix strategy for OS compatibility.
- Introduced a new agents API definition in YAML and JSON formats for hotel reservations, including endpoints for creating and retrieving reservations.
- Updated apis.json to include the new agents API with OAS 3.0 specifications.
- Enhanced AmfHelperMixin to support computation of agent and topic properties.
- Added tests for the new agents API functionality to ensure proper integration and behavior.
…up-node@v4, and add Playwright browser installation step.
…up-node@v1, switch Node.js version to 16, and integrate Playwright GitHub Action for browser installation.
@alexpmule alexpmule merged commit 02dee55 into master Jul 11, 2025
4 checks passed
@alexpmule alexpmule deleted the W-18562558/Adopt-and-Test-amf-helper-mixin-Methods branch July 11, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants