-
Notifications
You must be signed in to change notification settings - Fork 48
Update Google ADK Python Sample to Standard A365 #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
7c1cbc9
Update README title from '.NET SDK' to 'SDK Samples' (#1)
pontemonti d81af2c
Added CODEOWNERS and .gitignore files (#2)
pontemonti c3c1e74
Add .NET Semantic Kernel Sample Agent (#3)
pontemonti 1d90369
Update License to MIT License (#4)
rahuldevikar761 39a239c
Added Python OpenAI sample (#5)
pontemonti 6f236de
Add LangChain Sample (#7)
JesuTerraz 4cbd949
Add Node.js Claude Sample Agent (#6)
pontemonti 1c0b548
Fix Agent Notifs and update env (#8)
JesuTerraz ea11209
[Python][AgentFramework] Adding Python Agent Framework Sample (#9)
JesuTerraz 9b124ba
Add TM (#11)
rahuldevikar761 e99aa17
Revise README for Agent 365 Sample Agent (#13)
pontemonti d221266
Add TM (#14)
rahuldevikar761 e733e9c
Update Agents SDK for LangChain Sample (#15)
JesuTerraz 45fffa8
Adding Notifications on AF (#16)
mrunalhirve128 0b9adea
Add Copilot instructions for code review and validation (#21)
rahuldevikar761 db60215
Update Sample with API Change (#19)
JesuTerraz 1b01b67
Adding Vercel AI SDK sample with claude model (#23)
dbezic 7716ce5
Add n8n sample agent (#24)
rbrighenti 75e3a7d
Correct example agent name to use correct casing in line with n8n (#26)
rbrighenti cadc62f
Introducing perplexity Sample Agent (#18)
aubreyquinn d521cf1
Add OpenAI Nodejs Sample (#28)
JesuTerraz fea98e1
Rename "Microsoft Agents A365" to "Microsoft Agent 365" in documentat…
Copilot 51edfde
Add Devin Agent Sample (#22)
walterluna 45854e9
Fix OpenAI JS ToolingManifest (#33)
JesuTerraz 35b4a33
add updated nodejs claude implementation (#32)
msftairaamane 224b2dc
Quickstart LangChain Agent (#25)
JesuTerraz 2398b60
Introducing Playground notification handling in Perplexity agent (#34)
aubreyquinn 000ff20
Add Cursor IDE Prompt Guide for Agent365 (#29)
shinsi-fathima-rahman 348b4a9
Update samples to remove environment id from calls and settings (#10)
joratz 6c78dbe
Fix formatting of 'Microsoft Agent365' to 'Microsoft Agent 365' (#39)
pontemonti 292c85c
add quickstart claude agent before A365 extension (#42)
msftairaamane a5b3168
Update package.json description for clarity (#45)
pontemonti e8dccd5
Update devin agent sample (#48)
walterluna 42e7d80
updating samples read me docs (#47)
abdulanu0 df4e892
Update Node.js OpenAI sample (#50)
pontemonti 03f59e9
Introducing thinking indicator in Perplexity sample agent (#37)
aubreyquinn 4112c7a
updating auth handler (#53)
abdulanu0 2430fd0
Update Python Agent Framework sample (#58)
pontemonti 684a02c
Update Python OpenAI sample agent (#57)
pontemonti 251c405
Introducing observability in Perplexity agent (#44)
aubreyquinn acc29c9
Add prompt injection defense to agent system prompt (#40)
efpiva 8d931c9
Update Package References to Use npm Registry + Remove local preinsta…
JesuTerraz 0971787
Add temporariy thumbnails to the related samples (#63)
Alive-Fish 7bbfda7
Update .NET Semantic Kernel Sample Agent (#61)
pontemonti df82639
Update tooling manifest (#60)
pontemonti f473a8a
Introducing Microsoft Teams manifest file for Perplexity (#51)
aubreyquinn 004f8a2
Add manifest template for n8n Sample (#49)
rbrighenti 6dc7d20
Potential fix for code scanning alert no. 1: Workflow does not contai…
pontemonti 9e8d76d
Add CI workflow for Node.js OpenAI sample agent (#65)
pontemonti ffaa2ea
Remove local reference in python samples (#62)
JesuTerraz 132d1c3
Google ADK Sample with Tooling (#70)
JesuTerraz 9794391
Updated formatting on readme file (#71)
aubreyquinn 1611d2e
Perplexity: introducing the published agents-a365 packages (#72)
aubreyquinn c086ffc
Add Devin Agent's manifest sample (#52)
walterluna c44f444
reference public package dependencies (#64)
walterluna 805f9ae
Perplexity: added telemetry markers to all paths in the code (#73)
aubreyquinn aa4c676
Updated the scope for messaging. (#78)
Reza-sh 29c31bf
post public documentation changes (#80)
shinsi-fathima-rahman c1fa6a8
Add agent hosting to google adk sample
61433b1
Add agent hosting to google adk sample
4b638e7
add notifications
79ed3d1
add notifications
5e69956
fix notifications
5b4204b
fix notifications
bb1a9fd
rename wrapper
cf69e82
rename wrapper
6218d8f
remove unused fields
98c67d0
remove unused fields
23f57eb
get ids from context
c5ddece
get ids from context
3b13cfc
use scope in message handler
944ea25
use scope in message handler
c7ae173
remove workaround
7c84daf
remove workaround
7d801cf
copilot comments
b5672be
copilot comments
0c225cd
move email response to only email handling
f413b32
move email response to only email handling
84a6b67
pass auth handler name down from hosting
5f1b85a
pass auth handler name down from hosting
ce9c3c0
add default response
4ef2c3d
add default response
c48db5c
restructure notification handling
95366b5
restructure notification handling
f75a4e8
Merge branch 'main' into users/jterrazas/update-google-adk
719fc85
Merge branch 'main' into users/jterrazas/update-google-adk
c1e6ca0
Merge branch 'users/jterrazas/update-google-adk' of https://github.co…
719b55d
Merge branch 'main' into users/jterrazas/update-google-adk
704db20
removed added files
0469324
readd MyAgent.cs
cc48add
checkout myagent file
b27d584
update default instructions
df94f5b
Merge branch 'main' into users/jterrazas/update-google-adk
JesuTerraz 561739a
Merge branch 'main' into users/jterrazas/update-google-adk
JesuTerraz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Copyright (c) Microsoft. All rights reserved. | ||
|
|
||
| """ | ||
| Agent Base Class | ||
| Defines the abstract base class that agents must inherit from to work with the generic host. | ||
| """ | ||
|
|
||
| from abc import ABC, abstractmethod | ||
| from microsoft_agents.hosting.core import Authorization, TurnContext | ||
|
|
||
|
|
||
| class AgentInterface(ABC): | ||
| """ | ||
| Abstract base class that any hosted agent must inherit from. | ||
|
|
||
| This ensures agents implement the required methods at class definition time, | ||
| providing stronger guarantees than a Protocol. | ||
| """ | ||
| @abstractmethod | ||
| async def invoke_agent( | ||
| self, message: str, auth: Authorization, auth_handler_name: str, context: TurnContext | ||
| ) -> str: | ||
| """Process a user message and return a response.""" | ||
| pass | ||
|
|
||
| @abstractmethod | ||
| async def invoke_agent_with_scope( | ||
| self, message: str, auth: Authorization, auth_handler_name: str, context: TurnContext | ||
| ) -> str: | ||
| """Process a user message within an observability scope and return a response.""" | ||
| pass |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.