You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation~/README.md
+34-17Lines changed: 34 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -765,22 +765,29 @@ Debug.Log($"Modify run {run.Id} -> {run.Metadata["key"]}");
765
765
766
766
##### [Thread Submit Tool Outputs to Run](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs)
767
767
768
-
When a run has the status: `requires_action` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.
768
+
When a run has the status: `requires_action` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed.
769
+
All outputs must be submitted in a single request.
769
770
770
771
```csharp
771
772
varapi=newOpenAIClient();
772
773
vartools=newList<Tool>
773
774
{
774
775
// Use a predefined tool
775
-
Tool.Retrieval,
776
+
Tool.Retrieval,Tool.CodeInterpreter,
776
777
// Or create a tool from a type and the name of the method you want to use for function calling
Tool.FromFunc("name_of_func", () => { /* callback function */ }),
783
+
Tool.FromFunc<T1,T2,TResult>("func_with_multiple_params", (t1, t2) => { /* logic that calculates return value */returntResult; })
778
784
};
779
785
varassistantRequest=newCreateAssistantRequest(tools: tools, instructions: "You are a helpful weather assistant. Use the appropriate unit based on geographical location.");
0 commit comments