Skip to content

Releases: microsoft/Agents-for-js

v1.2.3

28 Jan 19:09
bad40cb

Choose a tag to compare

What's Changed

#888 - Fix consent flow for Copilot in Teams
#893 - Fix TeamsInfo class (broken since 1.1)
#891 - Add Zod dependency

v1.2

13 Jan 16:48

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.1...v1.2.0

v1.1.1

04 Dec 18:13
8f4918f

Choose a tag to compare

New

Support for Agentic Identity
Added initial support for Microsoft Agent ID. See: What is Microsoft Entra Agent ID? - Microsoft Entra Agent ID | Microsoft Learn
Further setup documentation will be provided on use of this feature in the future as it moves forward.

Multiple Connections
It is now possible to configure your agent application with multiple parallel application identities. We call these "Connections." When used in conjunction with Agentic Identity, this allows for an agent application to act as any installed instance of the agent across multiple tenants, as well as bind specific routes to different agent configuration within the same app.

# in .env
# define a connection named `serviceConnection`
# the name used in the env variable names must match the name
# specified in the connectionsMap below
connections__serviceConnection__settings__clientId= # App ID of the App Registration used to log in.
connections__serviceConnection__settings__clientSecret= # Client secret of the App Registration used to log in
connections__serviceConnection__settings__tenantId= # Tenant ID of the App Registration used to log in

connectionsMap__0__connection=serviceConnection
connectionsMap__0__serviceUrl=*

Sample here

If nothing is changed in your configuration, the SDK will automatically use the existing settings to create a default Connection for you. No changes are required.

In copilot studio client: sendActivityStreaming, startConversationStreaming
In addition to the sendActivityAsync and startConversationAsync methods, this version introduces new versions that support streaming messages returned as they arrive using AsyncGenerators. These methods will return a stream of Activities as they arrive over the wire and use a new syntax for dealing with AsyncGenerators.

for await (const replyActivity of copilotClient.sendActivityStreaming(activity)) {
  ... process each activity as it arrives, including typing indicators, events, etc
}  

Sample here

Breaking Changes

There were some unavoidable changes necessary in the SDK which will require updates to your code if you use any of the following methods:

CloudAdapter.ContinueConversation or AgentApplication.sendProactiveActivity
Both of these methods now require botAppIdOrIdentity to be passed as the first argument. This must either be the agents's app ID, or a JwtPayload object from the incoming request, usually TurnContext.identity

CloudAdapter getAttachment/getAttachmentInfo/uploadAttachment
These methods now require a TurnContext to be passed as the first argument.

CloudAdapter.ConnectorClient and CloudAdapter.UserTokenClient have been removed.
Rather than being members of the CloudAdapter class, these are now available as turncontext.turnstate.get(adapter.ConnectorClientKey) and turncontext.turnstate.get(adapter.UserTokenClientKey)

AgentApplication.authorization.beginOrContinueFlow has been removed

AgentApplication.authorization.authHandlers has been removed

oAuthFlow class removed

What's Changed

Read more

v1.0.15

08 Sep 22:48
db2b1b7

Choose a tag to compare

What's Changed

Full Changelog: v1.0.14...v1.0.15

v1.0.14

03 Sep 23:54
56345a1

Choose a tag to compare

What's Changed

  • Expose StreamingResponse delay in API by @rido-min in #556
  • Add Url to ClientCitations

Full Changelog: v1.0.13...v1.0.14

v1.0.13

18 Aug 15:42
ef996e8

Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.13

v1.0.0

21 Jul 21:49
e483181

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.11...v1.0.0

v0.6.11

14 Jul 21:30
745d267

Choose a tag to compare

What's Changed

Full Changelog: v0.6.1...v0.6.11

v0.6.1

09 Jul 23:57
daff6d2

Choose a tag to compare

What's Changed

  • chore: update dependencies in package.json files by @rido-min in #336
  • Feat new teams extension by @rido-min in #332
  • feat: add Microsoft Teams extension package and documentation by @rido-min in #346
  • Fix build warnings in reference doc generations by @JimDaly in #350
  • Feat/streaming by @rido-min in #339
  • Update UserTokenClient with GetTokenOrSigningResource / GetTokenStatus and GetAadTokens by @rido-min in #291
  • [#224] Update Copilot Studio Client and sample to support S2S and DirectURL Connection by @ceciliaavila in #354
  • Fix/284-routes by @rido-min in #380
  • refactor: use Activity.fromObject for sending activity responses in message handling by @rido-min in #385
  • fix: update code block syntax in README for environment variables by @rido-min in #381
  • refactor: update OAuth flow to use Storage instead of UserState and improve token handling by @rido-min in #402
  • [#397] [Feature] Add WebChat support for Copilot Studio Client by @sw-joelmut in #398
  • [#222] Add support for Targeted messages in a group setting by @ceciliaavila in #386
  • update deps by @rido-min in #405
  • Feat/auto-auth-obo2 by @rido-min in #413
  • chore: update dependencies to latest versions for @types/node and sinon by @rido-min in #418
  • feat: implement MsalTokenCredential for Azure authentication and update BlobsStorage constructor by @rido-min in #421
  • [#368] Provide custom scopes for MCS environments by @ceciliaavila in #415
  • chore: update dependencies and fix typo in streaming response message by @rido-min in #428
  • Support multiple connections by @rido-min in #430
  • Rev version to 0.6 by @rido-min in #439

New Contributors

Full Changelog: v0.4.3...v0.6.1

v0.4.3

28 May 22:24
ba5ad49

Choose a tag to compare

What's Changed

  • Fix askQuestion logic for user input handling by @rido-min in #328
  • Update activityZodSchema to allow optional empty text and add corresponding test case by @rido-min in #335

Full Changelog: v0.4.1...v0.4.3