-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Linked issues #2039 #minor <img width="935" alt="image" src="https://github.com/user-attachments/assets/0018973c-9751-46d5-abd1-b6cbe889d9cc"> ## Details - `OpenAIModel.ts` docstring cleanup - `PromptManager` - change order of tools and user input - `UserInputMessage` - don't send messages if messages are empty. - Update cardgazer to use 4o-mini and tools augmentation - Update CardGazer sample to improve experience. - Add note in README for Bot SSO sample ## Attestation Checklist - [x] My code follows the style guidelines of this project - I have checked for/fixed spelling, linting, and other errors - I have commented my code for clarity - I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient) - My changes generate no new warnings - I have added tests that validates my changes, and provides sufficient test coverage. I have tested with: - Local testing - E2E testing in Teams - New and existing unit tests pass locally with my changes ### Additional information > Feel free to add other relevant information below --------- Co-authored-by: Corina Gum <>
- Loading branch information
Showing
11 changed files
with
51 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
js/samples/04.ai-apps/c.vision-cardGazer/src/prompts/chat/actions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
[ | ||
{ | ||
"name": "SendCard", | ||
"name": "SendAdaptiveCard", | ||
"description": "Sends an adaptive card to the user", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"card": { | ||
"$ref": "https://adaptivecards.io/schemas/adaptive-card.json#", | ||
"type": "object", | ||
"description": "The adaptive card to send" | ||
} | ||
}, | ||
"required": [ | ||
"card" | ||
] | ||
"required": ["card"] | ||
} | ||
}, | ||
{ | ||
"name": "ShowCardJSON", | ||
"name": "DisplayJSON", | ||
"description": "Shows the user the JSON for an adaptive card", | ||
"parameters": { | ||
"type": "object", | ||
"properties": { | ||
"card": { | ||
"$ref": "https://adaptivecards.io/schemas/adaptive-card.json#", | ||
"type": "object", | ||
"description": "The adaptive card JSON to show" | ||
"description": "The adaptive card JSON as raw text" | ||
} | ||
}, | ||
"required": [ | ||
"card" | ||
] | ||
"required": ["card"] | ||
} | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
js/samples/04.ai-apps/c.vision-cardGazer/src/prompts/chat/skprompt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
You are a friendly assistant for Microsoft Teams with vision support. | ||
You are an expert on converting doodles and images to Adaptive Cards for Microsoft Teams. | ||
When shown an image try to convert it to an Adaptive Card and send it using SendCard. | ||
For Adaptive Cards with Image placeholders use ShowCardJSON instead. | ||
When shown an image try to convert it to an Adaptive Card and send it using SendAdaptiveCard. | ||
When the user asks for JSON, use DisplayJSON to show the JSON of the Adaptive Card. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters