Skip to content
Merged
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
1 change: 0 additions & 1 deletion nodejs/claude/sample-agent/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export class MyAgent extends AgentApplication<TurnState> {
new BaggageBuilder(),
turnContext
).sessionDescription('Initial onboarding session')
.correlationId("7ff6dca0-917c-4bb0-b31a-794e533d8aad")
.build();

// Preload/refresh exporter token
Expand Down
1 change: 0 additions & 1 deletion nodejs/claude/sample-agent/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ class ClaudeClient implements Client {
// Record the inference response with token usage
scope?.recordOutputMessages([response]);
scope?.recordInputMessages([prompt]);
scope?.recordResponseId(`resp-${Date.now()}`);
scope?.recordInputTokens(45);
scope?.recordOutputTokens(78);
scope?.recordFinishReasons(['stop']);
Expand Down
1 change: 0 additions & 1 deletion nodejs/langchain/sample-agent/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export class A365Agent extends AgentApplication<TurnState> {
new BaggageBuilder(),
turnContext
).sessionDescription('Initial onboarding session')
.correlationId(`corr-${Date.now()}`)
.build();

// Preload/refresh exporter token
Expand Down
1 change: 0 additions & 1 deletion nodejs/langchain/sample-agent/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ class LangChainClient implements Client {
// Record the inference response with token usage
scope.recordOutputMessages([response]);
scope.recordInputMessages([prompt]);
scope.recordResponseId(`resp-${Date.now()}`);
scope.recordInputTokens(45);
scope.recordOutputTokens(78);
scope.recordFinishReasons(['stop']);
Expand Down
1 change: 0 additions & 1 deletion nodejs/openai/sample-agent/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class MyAgent extends AgentApplication<TurnState> {
new BaggageBuilder(),
turnContext
).sessionDescription('Initial onboarding session')
.correlationId("7ff6dca0-917c-4bb0-b31a-794e533d8aad")
.build();

// Preloads or refreshes the Observability token used by the Agent 365 Observability exporter.
Expand Down
1 change: 0 additions & 1 deletion nodejs/openai/sample-agent/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ class OpenAIClient implements Client {
// Record the inference response with token usage
scope.recordOutputMessages([response]);
scope.recordInputMessages([prompt]);
scope.recordResponseId(`resp-${Date.now()}`);
scope.recordInputTokens(45);
scope.recordOutputTokens(78);
scope.recordFinishReasons(['stop']);
Expand Down
1 change: 0 additions & 1 deletion nodejs/vercel-sdk/sample-agent/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ class VercelAiClient implements Client {
response = await this.invokeAgent(prompt);
scope.recordOutputMessages([response]);
scope.recordInputMessages([prompt]);
scope.recordResponseId(`resp-${Date.now()}`);
scope.recordInputTokens(45);
scope.recordOutputTokens(78);
scope.recordFinishReasons(['stop']);
Expand Down
2 changes: 1 addition & 1 deletion python/crewai/sample_agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For comprehensive documentation and guidance on building agents with the Microso

## Prerequisites

- Python 3.11+
- Python 3.11–3.13
- [UV](https://docs.astral.sh/uv/) (recommended for dependency management)
- Azure OpenAI API credentials OR OpenAI API key
- [Tavily API key](https://tavily.com) for weather search functionality
Expand Down
9 changes: 8 additions & 1 deletion python/crewai/sample_agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "crew_agent"
version = "0.1.0"
description = "CrewAI Sample Agent using Microsoft Agent 365 SDK with MCP tooling support"
authors = [{ name = "Microsoft", email = "support@microsoft.com" }]
requires-python = ">=3.11"
requires-python = ">=3.11,<3.14"
dependencies = [
"crewai[azure-ai-inference,tools]==1.4.1",
"pysqlite3-binary>=0.5.2; sys_platform == 'linux'",
Expand All @@ -26,6 +26,9 @@ dependencies = [
"microsoft_agents_a365_notifications>=0.1.0",
"microsoft_agents_a365_runtime>=0.1.0",
"wrapt>=2.0.1",
# lancedb 0.30.1+ has no Windows wheels; cap at 0.30.0 on Windows.
# Also enforced via [tool.uv] override-dependencies for uv users.
"lancedb<=0.30.0; sys_platform == 'win32'",
]

[project.scripts]
Expand All @@ -42,3 +45,7 @@ type = "crew"
# This ensures we always get the latest features and fixes
[tool.uv]
prerelease = "allow"
override-dependencies = [
# lancedb 0.30.1+ has no Windows wheels; cap at 0.30.0 which does provide Windows wheels.
"lancedb<=0.30.0; sys_platform == 'win32'",
]
Loading