Skip to content

Commit f7ad21d

Browse files
initial version of the declarative support
1 parent ba16450 commit f7ad21d

27 files changed

+1390
-385
lines changed

agent-samples/azure/AzureOpenAI.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ model:
1212
outputSchema:
1313
properties:
1414
language:
15-
type: string
15+
kind: string
1616
required: true
1717
description: The language of the answer.
1818
answer:
19-
type: string
19+
kind: string
2020
required: true
2121
description: The answer text.
2222
type:
23-
type: string
23+
kind: string
2424
required: true
2525
description: The type of the response.

agent-samples/azure/AzureOpenAIAssistants.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ model:
1212
outputSchema:
1313
properties:
1414
language:
15-
type: string
15+
kind: string
1616
required: true
1717
description: The language of the answer.
1818
answer:
19-
type: string
19+
kind: string
2020
required: true
2121
description: The answer text.
2222
type:
23-
type: string
23+
kind: string
2424
required: true
2525
description: The type of the response.

agent-samples/azure/AzureOpenAIResponses.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ model:
77
provider: AzureOpenAI
88
apiType: Responses
99
options:
10-
temperature: 0.9
11-
topP: 0.95
10+
text:
11+
verbosity: medium
12+
connection:
13+
kind: remote
14+
endpoint: =Env.AZURE_OPENAI_ENDPOINT
1215
outputSchema:
1316
properties:
1417
language:
15-
type: string
18+
kind: string
1619
required: true
1720
description: The language of the answer.
1821
answer:
19-
type: string
22+
kind: string
2023
required: true
2124
description: The answer text.
2225
type:
23-
type: string
26+
kind: string
2427
required: true
2528
description: The type of the response.

agent-samples/chatclient/Assistant.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ model:
99
outputSchema:
1010
properties:
1111
language:
12-
type: string
12+
kind: string
1313
required: true
1414
description: The language of the answer.
1515
answer:
16-
type: string
16+
kind: string
1717
required: true
1818
description: The answer text.

agent-samples/chatclient/GetWeather.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ description: Helpful assistant
44
instructions: You are a helpful assistant. You answer questions using the tools provided.
55
model:
66
options:
7-
temperature: 0.9
8-
topP: 0.95
97
allowMultipleToolCalls: true
108
chatToolMode: auto
119
tools:
1210
- kind: function
1311
name: GetWeather
1412
description: Get the weather for a given location.
13+
bindings:
14+
get_weather: get_weather
1515
parameters:
16-
- name: location
17-
type: string
16+
location:
17+
kind: string
1818
description: The city and state, e.g. San Francisco, CA
1919
required: true
20-
- name: unit
21-
type: string
20+
unit:
21+
kind: string
2222
description: The unit of temperature. Possible values are 'celsius' and 'fahrenheit'.
2323
required: false
2424
enum:

agent-samples/foundry/MicrosoftLearnAgent.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ model:
88
temperature: 0.9
99
topP: 0.95
1010
connection:
11-
kind: ExternalReference
11+
kind: remote
1212
endpoint: =Env.AZURE_FOUNDRY_PROJECT_ENDPOINT
1313
tools:
1414
- kind: mcp
1515
name: microsoft_learn
1616
description: Get information from Microsoft Learn.
1717
url: https://learn.microsoft.com/api/mcp
18-
requireApproval: requireSpecific
18+
approvalMode:
19+
kind: never
1920
allowedTools:
20-
- microsoft_docs_search
21+
- microsoft_docs_search

agent-samples/foundry/PersistentAgent.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ model:
88
temperature: 0.9
99
topP: 0.95
1010
connection:
11-
kind: ExternalReference
11+
kind: remote
1212
endpoint: =Env.AZURE_FOUNDRY_PROJECT_ENDPOINT
1313
outputSchema:
1414
properties:
1515
language:
16-
type: string
16+
kind: string
1717
required: true
1818
description: The language of the answer.
1919
answer:
20-
type: string
20+
kind: string
2121
required: true
2222
description: The answer text.

agent-samples/openai/OpenAI.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ model:
1010
temperature: 0.9
1111
topP: 0.95
1212
connection:
13-
kind: ApiKey
14-
key: =Env.OPENAI_APIKEY
13+
kind: key
14+
key: =Env.OPENAI_API_KEY
1515
outputSchema:
1616
properties:
1717
language:
18-
type: string
18+
kind: string
1919
required: true
2020
description: The language of the answer.
2121
answer:
22-
type: string
22+
kind: string
2323
required: true
2424
description: The answer text.
2525
type:
26-
type: string
26+
kind: string
2727
required: true
2828
description: The type of the response.

agent-samples/openai/OpenAIAssistants.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ model:
1010
temperature: 0.9
1111
topP: 0.95
1212
connection:
13-
kind: ApiKey
13+
kind: key
1414
key: =Env.OPENAI_APIKEY
1515
outputSchema:
1616
name: AssistantResponse
1717
description: The response from the assistant.
1818
properties:
1919
language:
20-
type: string
20+
kind: string
2121
required: true
2222
description: The language of the answer.
2323
answer:
24-
type: string
24+
kind: string
2525
required: true
2626
description: The answer text.
2727
type:
28-
type: string
28+
kind: string
2929
required: true
3030
description: The type of the response.

agent-samples/openai/OpenAIResponses.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ model:
77
provider: OpenAI
88
apiType: Responses
99
options:
10-
temperature: 0.9
11-
topP: 0.95
10+
text:
11+
verbosity: medium
1212
connection:
13-
kind: ApiKey
13+
kind: key
1414
key: =Env.OPENAI_APIKEY
1515
outputSchema:
1616
properties:
1717
language:
18-
type: string
18+
kind: string
1919
required: true
2020
description: The language of the answer.
2121
answer:
22-
type: string
22+
kind: string
2323
required: true
2424
description: The answer text.
2525
type:
26-
type: string
26+
kind: string
2727
required: true
2828
description: The type of the response.

0 commit comments

Comments
 (0)