Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import asyncio
from dotenv import load_dotenv

from azure.ai.projects.models._enums import FoundryFeaturesOptInKeys
from azure.identity.aio import DefaultAzureCredential
from azure.ai.projects.aio import AIProjectClient
from azure.ai.projects.models import (
Expand Down Expand Up @@ -139,6 +140,7 @@ async def main():
workflow = await project_client.agents.create_version(
agent_name="student-teacher-workflow-async",
definition=WorkflowAgentDefinition(workflow=workflow_yaml),
foundry_features=FoundryFeaturesOptInKeys.WORKFLOW_AGENTS_V1_PREVIEW,
)

print(f"Agent created (id: {workflow.id}, name: {workflow.name}, version: {workflow.version})")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
# outputQueue.set(json.dumps(response_message))

# except Exception as e:
# logging.error(f"Error processing message: {e}")
# logging.error(f"Error processing message: {e}")