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
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/va-h/devcontainers-features/uv:1": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [7861],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip3 install --user -r requirements.txt",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter"
]
}
}

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: weekly
8 changes: 4 additions & 4 deletions enterprise-streaming-agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"if found_agent:\n",
" # Update the existing agent to use new tools\n",
" agent = project_client.agents.update_agent(\n",
" assistant_id=found_agent.id,\n",
" agent_id=found_agent.id,\n",
" model=found_agent.model,\n",
" instructions=found_agent.instructions,\n",
" toolset=toolset,\n",
Expand Down Expand Up @@ -610,7 +610,7 @@
" # -- EVENT STREAMING --\n",
" with project_client.agents.create_stream(\n",
" thread_id=thread.id,\n",
" assistant_id=agent.id,\n",
" agent_id=agent.id,\n",
" event_handler=MyEventHandler() # the event handler handles console output\n",
" ) as stream:\n",
" for item in stream:\n",
Expand Down Expand Up @@ -851,7 +851,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -865,7 +865,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.8"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
azure-ai-projects
azure-ai-projects==1.0.0b7
azure-identity
gradio
ipykernel
Expand Down