File tree Expand file tree Collapse file tree
samples/microsoft/csharp/getting-started-agents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ Synchronous sample:
2323PersistentAgent agent = client .Administration .CreateAgent (
2424 model : modelDeploymentName ,
2525 name : " Math Tutor" ,
26- instructions : " You are a personal electronics tutor. Write and run code to answer questions."
27- );
26+ instructions : " You are a personal electronics tutor. Write and run code to answer questions." ,
27+ tools : [ new CodeInterpreterToolDefinition ()] );
2828```
2929
3030Asynchronous sample:
Original file line number Diff line number Diff line change 1414PersistentAgent agent = await client . Administration . CreateAgentAsync (
1515 model : modelDeploymentName ,
1616 name : "Math Tutor" ,
17- instructions : "You are a personal electronics tutor. Write and run code to answer questions."
18- ) ;
17+ instructions : "You are a personal electronics tutor. Write and run code to answer questions." ,
18+ tools : [ new CodeInterpreterToolDefinition ( ) ] ) ;
1919
2020PersistentAgentThread thread = await client . Threads . CreateThreadAsync ( ) ;
2121
You can’t perform that action at this time.
0 commit comments