Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions nodejs/devin/sample-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
"@microsoft/agents-a365-runtime": "^0.1.0-preview.30",
"@microsoft/agents-a365-tooling": "^0.1.0-preview.30",
"@microsoft/agents-hosting": "^1.0.15",
"uuid": "^13.0.0"
"uuid": "^13.0.0",
"express": "^5.1.0"
},
"devDependencies": {
"@microsoft/m365agentsplayground": "^0.2.20",
"typescript": "^5.9.2"
"typescript": "^5.9.2",
"@types/express": "^5.0.6",
Comment thread
Yogeshp-MSFT marked this conversation as resolved.
"@types/node": "^25.2.3"
Comment thread
Yogeshp-MSFT marked this conversation as resolved.
Comment thread
Yogeshp-MSFT marked this conversation as resolved.
}
}
4 changes: 3 additions & 1 deletion nodejs/langchain/quickstart-before/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"@types/express": "^4.17.25",
"@types/node": "^20.19.37",
"nodemon": "^3.1.10",
"ts-node": "^10.9.2"
"ts-node": "^10.9.2",
"@types/express": "^5.0.6" ,
Comment thread
Yogeshp-MSFT marked this conversation as resolved.
"@types/node": "^25.2.3"
Comment thread
Yogeshp-MSFT marked this conversation as resolved.
}
}
32 changes: 28 additions & 4 deletions python/agent-framework/sample-agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,31 @@
# <DependencyImports>

# AgentFramework SDK
from agent_framework import ChatAgent
# -----------------------------------------------------------------------------
# TEMPORARY COMPATIBILITY WORKAROUND (NOT A LONG-TERM SOLUTION)
#
# Context:
# - Recent versions of agent-framework-core no longer export `ChatAgent`.
# - This sample / tooling extension currently imports and/or expects `ChatAgent`.
#
# What this does:
# - Provides a short-term compatibility so the sample can run until upstream
# packages are updated.
#
# Why it's temporary:
# - Monkey-patching is fragile and can break with import order or
# future package changes.
#
# Removal plan:
# - Remove this block once either:
# (1) agent-framework-core exports ChatAgent again, OR
# (2) microsoft_agents_a365_tooling_extensions_agentframework is updated to use `Agent`
# (or a stable interface) instead of ChatAgent.
#
# -----------------------------------------------------------------------------
import agent_framework as _af
from agent_framework import Agent as ChatAgent
_af.ChatAgent = ChatAgent
Comment thread
Yogeshp-MSFT marked this conversation as resolved.
from agent_framework.azure import AzureOpenAIChatClient

# Agent Interface
Expand Down Expand Up @@ -151,9 +175,9 @@ def _create_agent(self):
"""Create the AgentFramework agent with initial configuration"""
try:
self.agent = ChatAgent(
chat_client=self.chat_client,
instructions=self.AGENT_PROMPT,
tools=[],
client=self.chat_client, # correct keyword name
instructions=self.AGENT_PROMPT,
tools=[],
)
logger.info("✅ AgentFramework agent created")
except Exception as e:
Expand Down
Loading