-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure.yaml
More file actions
99 lines (98 loc) · 3.31 KB
/
Copy pathazure.yaml
File metadata and controls
99 lines (98 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
requiredVersions:
extensions:
azure.ai.agents: '>=0.1.34-preview'
azure.ai.routines: '>=1.0.0-beta.1'
microsoft.foundry: '>=1.0.0-beta.1'
name: dailydigest
metadata:
template: simple-foundry-hosted-agent-python-aigateway@1.0.0
services:
ai-project:
host: azure.ai.project
daily-repo-digest:
host: azure.ai.routine
uses:
- simple-foundry-hosted-agent-python-aigateway
action:
agent_name: simple-foundry-hosted-agent-python-aigateway
input: Create a concise daily repo digest for microsoft/agent-framework.
type: invoke_agent_responses_api
description: Create a daily repo digest at 9 AM Pacific time.
enabled: true
triggers:
default:
cron_expression: 0 9 * * *
time_zone: America/Los_Angeles
type: schedule
simple-foundry-hosted-agent-python-aigateway:
project: ./
host: azure.ai.agent
language: docker
docker:
remoteBuild: true
uses:
- ai-project
config:
startupCommand: uv run --frozen --no-dev python main.py
container:
resources:
cpu: "0.5"
memory: 1Gi
description: Daily repo digest agent hosted by Microsoft Foundry and routed through AI Gateway.
environmentVariables:
- name: AZURE_AI_GATEWAY_ENDPOINT
value: ${AZURE_AI_GATEWAY_ENDPOINT}
- name: AZURE_AI_GATEWAY_MODEL
value: ${AZURE_AI_GATEWAY_MODEL}
- name: AZURE_AI_GATEWAY_MINI_MODEL
value: ${AZURE_AI_GATEWAY_MINI_MODEL}
- name: AZURE_AI_GATEWAY_API_KEY
value: ${AZURE_AI_GATEWAY_API_KEY}
- name: TOOLBOX_ENDPOINT
value: ${TOOLBOX_ENDPOINT}
- name: TOOLBOX_NAME
value: ${TOOLBOX_NAME}
- name: GITHUB_REPOSITORY
value: ${GITHUB_REPOSITORY}
kind: hosted
metadata:
tags:
- Agent Framework
- AI Agent Hosting
- Azure AI AgentServer
- AI Gateway
- MCP
- Responses Protocol
name: simple-foundry-hosted-agent-python-aigateway
protocols:
- protocol: responses
version: 2.0.0
infra:
provider: bicep
path: infra
module: main
hooks:
postdown:
windows:
shell: pwsh
run: ./infra/scripts/manage-ai-gateway-lifecycle.ps1 cleanup
posix:
shell: sh
run: bash ./infra/scripts/manage-ai-gateway-lifecycle.sh cleanup
postprovision:
windows:
shell: pwsh
run: ./infra/scripts/configure-ai-gateway.ps1
interactive: true
posix:
shell: sh
run: bash ./infra/scripts/configure-ai-gateway.sh
interactive: true
preprovision:
windows:
shell: pwsh
run: ./infra/scripts/configure-ai-gateway.ps1 --prepare-bicep
posix:
shell: sh
run: bash ./infra/scripts/configure-ai-gateway.sh --prepare-bicep