@@ -59,7 +59,7 @@ func main() {
5959 mathTutorAgent , err := blades.NewAgent (
6060 " MathTutor" ,
6161 blades.WithDescription (" An agent that helps with math questions" ),
62- blades.WithInstructions (" You are a helpful math tutor. Answer questions related to mathematics." ),
62+ blades.WithInstruction (" You are a helpful math tutor. Answer questions related to mathematics." ),
6363 blades.WithModel (model),
6464 )
6565 if err != nil {
@@ -68,7 +68,7 @@ func main() {
6868 historyTutorAgent , err := blades.NewAgent (
6969 " HistoryTutor" ,
7070 blades.WithDescription (" An agent that helps with history questions" ),
71- blades.WithInstructions (" You are a helpful history tutor. Answer questions related to history." ),
71+ blades.WithInstruction (" You are a helpful history tutor. Answer questions related to history." ),
7272 blades.WithModel (model),
7373 )
7474 if err != nil {
@@ -142,7 +142,7 @@ func NewRoutingWorkflow(routes map[string]string) (*RoutingWorkflow, error) {
142142 router , err := blades.NewAgent (
143143 " triage_agent" ,
144144 blades.WithModel (model),
145- blades.WithInstructions (" You determine which agent to use based on the user's homework question" ),
145+ blades.WithInstruction (" You determine which agent to use based on the user's homework question" ),
146146 )
147147 if err != nil {
148148 return nil , err
@@ -152,7 +152,7 @@ func NewRoutingWorkflow(routes map[string]string) (*RoutingWorkflow, error) {
152152 agent , err := blades.NewAgent (
153153 name,
154154 blades.WithModel (model),
155- blades.WithInstructions (instructions),
155+ blades.WithInstruction (instructions),
156156 )
157157 if err != nil {
158158 return nil , err
0 commit comments