This M365 agentic app is built on top of Teams AI library demonstrates how open-source Monocle and Okahu Cloud is used to monitor AI-enabled automated experiences.
This demo is managed by Okahu.1
Monocle is a GenAI-native community driven open source project created to simplify instrumentation of AI apps so app developers can built high impact, safe and reliable AI apps.
Monocle is currently a Sandbox project in Linux Foundation AI & Data. In its first iteration, Monocle helps app developers make GenAI apps observable without having to write last-mile monitoring code.
Check out PyPI for release history of Monocle Python package.
Okahu Cloud is a GenAI-native observability platform that simplifies observability & evals required for taking agentic and LLM based apps from lab into prod.
Okahu Cloud is built by a team of AI, observability and cloud engineers from Okahu. Okahu is a VC funded bay area startup founded by Stanford, Microsoft & BlueTalon to help AI app developers, platform engineers and engineering leaders to build reliable, accurate and safer AI apps.
- VS Code IDE
- Microsoft 365 Agents Toolkit for VS Code
- Monocle extension for VS Code
- In VS Code, open the command box and enter
Python: Create Environment
to create and activate your desired virtual environment. Remember to selectsrc/requirements.txt
as dependencies to install when creating the virtual environment. - Create a file
env/.env.playground.user
and enter the following environment variables:
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_MODEL_DEPLOYMENT_NAME=
AZURE_OPENAI_ENDPOINT=
OKAHU_API_KEY=
- Select the Microsoft 365 Agents Toolkit icon on the left in the VS Code toolbar.
- Press F5 to start debugging which launches your app in Teams using a web browser. Select
Debug in Microsoft 365 Agent Playground
. - You will receive a welcome message from the agent, or send any message to get a response.
- Open Okahu Cloud Portal (http://portal.okahu.co) and click
Discover
under Applications > Components tab. - Visualize traces from
Traces
tab and prompts fromPrompts
tab. - Add a new application from
Applications
navigation to view insights.
Congratulations! You are running an application that can now interact with users in Teams and monitor how it works using Okahu Cloud.
- Create a file
env/.env.dev.user
and enter the following environment variables:
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_MODEL_DEPLOYMENT_NAME=
AZURE_OPENAI_ENDPOINT=
OKAHU_API_KEY=
File | Changes |
---|---|
src/prompts/chat/skprompt.txt |
Change the system/developer prompt to alter your bot. |
src/prompts/chat/config.json |
Configures the prompt. |
Footnotes
-
Use of Okahu hosted demo is covered by Okahu's terms of service for evaluations. Okahu is a team of AI, observability & cloud engineers working to simplify observability for agentic and other GenAI apps. We serve AI app developers, platform engineers and engineering leaders to build reliable, accurate and safer AI apps. We believe in community driven open source software and are a major contributor to GenAI native observability Project Monocle hosted by Linux Foundation. Connect with us on Linkedin, Github or email us at [email protected] ↩