-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_workflow.yaml
More file actions
46 lines (40 loc) · 984 Bytes
/
my_workflow.yaml
File metadata and controls
46 lines (40 loc) · 984 Bytes
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
# My Custom Workflow
# Run with: nat run --config_file my_workflow.yaml --input "your question"
# Or serve: nat serve --config_file my_workflow.yaml
general:
use_uvloop: true
# Define your tools/functions
functions:
# Wikipedia search tool
wikipedia_search:
_type: wiki_search
max_results: 3
# Get current date/time
current_datetime:
_type: current_datetime
# Calculator tools
multiply:
_type: calculator_multiply
divide:
_type: calculator_divide
subtract:
_type: calculator_subtract
# Define your LLM(s)
llms:
my_llm:
_type: nim
model_name: meta/llama-3.1-70b-instruct # or meta/llama-3.3-70b-instruct
temperature: 0.0
max_tokens: 1024
# Define the workflow/agent
workflow:
_type: react_agent # Options: react_agent, tool_calling, rewoo
tool_names:
- wikipedia_search
- current_datetime
- multiply
- divide
- subtract
llm_name: my_llm
verbose: true
parse_agent_response_max_retries: 3