最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

botframework - Using AI Generated Messages in Traditional Bot Framework C# Bot - Stack Overflow

programmeradmin0浏览0评论

I haven't seen any examples yet of this being done. I have a traditional Bot Framework Teams bot (C#) where I'm trying to enable some of these new enhancements.

Are there any restrictions in getting these to work outside of Teams AI Lib? Or any examples somewhere? Something I've tried which doesn't seem to work. I don't see any errors with the Activity being sent. In Teams the message does show up, just without any of the new labels:

var reply = MessageFactory.Text("Hello World");
reply.Entities = new List<Entity>
    {
        new Entity
        {
           Type = ";,
           Properties = JObject.FromObject(new
           {
              @type = "Message",
              @context = ";,
              additionalType = new[] { "AIGeneratedContent" } // Enables AI label
          })
      }
  };
await stepContext.Context.SendActivityAsync(reply, cancellationToken);
发布评论

评论列表(0)

  1. 暂无评论