-
Notifications
You must be signed in to change notification settings - Fork 367
Expand file tree
/
Copy pathstructured-output.yaml
More file actions
43 lines (42 loc) · 1.24 KB
/
structured-output.yaml
File metadata and controls
43 lines (42 loc) · 1.24 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
models:
gpt4_structured:
provider: openai
model: gpt-4o-2024-08-06
temperature: 0.7
max_tokens: 1000
agents:
root:
model: gpt4_structured
description: "Agent that extracts structured information about people"
instruction: |
You are an assistant that extracts structured information about people from conversations.
Always respond with valid JSON matching the specified schema.
commands:
demo: My name is John Doe, I am 30 years old, my email is john.doe@example.com, and I enjoy hiking and photography.
structured_output:
name: "person_info"
description: "Information about a person"
strict: true
schema:
type: object
properties:
name:
type: string
description: "The person's full name"
age:
type: integer
description: "The person's age"
email:
type: string
description: "The person's email address"
hobbies:
type: array
items:
type: string
description: "List of the person's hobbies"
required:
- name
- age
- email
- hobbies
additionalProperties: false