-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
1,477 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# ChatGptChoiceExtensions class | ||
|
||
Contains extension methods for the [`ChatGptChoice`](../ChatGptNet.Models/ChatGptChoice.md) class. | ||
|
||
```csharp | ||
public static class ChatGptChoiceExtensions | ||
``` | ||
|
||
## Public Members | ||
|
||
| name | description | | ||
| --- | --- | | ||
| static [ContainsFunctionCalls](ChatGptChoiceExtensions/ContainsFunctionCalls.md)(…) | Gets a value indicating whether this choice contains a function call. | | ||
| static [ContainsToolCalls](ChatGptChoiceExtensions/ContainsToolCalls.md)(…) | Gets a value indicating whether this choice contains at least one tool call. | | ||
| static [GetFunctionCall](ChatGptChoiceExtensions/GetFunctionCall.md)(…) | Gets the first function call of the message, if any. | | ||
|
||
## See Also | ||
|
||
* namespace [ChatGptNet.Extensions](../ChatGptNet.md) | ||
* [ChatGptChoiceExtensions.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Extensions/ChatGptChoiceExtensions.cs) | ||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
15 changes: 15 additions & 0 deletions
15
docs/ChatGptNet.Extensions/ChatGptChoiceExtensions/ContainsFunctionCalls.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ChatGptChoiceExtensions.ContainsFunctionCalls method | ||
|
||
Gets a value indicating whether this choice contains a function call. | ||
|
||
```csharp | ||
public static bool ContainsFunctionCalls(this ChatGptChoice choice) | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptChoice](../../ChatGptNet.Models/ChatGptChoice.md) | ||
* class [ChatGptChoiceExtensions](../ChatGptChoiceExtensions.md) | ||
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
15 changes: 15 additions & 0 deletions
15
docs/ChatGptNet.Extensions/ChatGptChoiceExtensions/ContainsToolCalls.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ChatGptChoiceExtensions.ContainsToolCalls method | ||
|
||
Gets a value indicating whether this choice contains at least one tool call. | ||
|
||
```csharp | ||
public static bool ContainsToolCalls(this ChatGptChoice choice) | ||
``` | ||
|
||
## See Also | ||
|
||
* class [ChatGptChoice](../../ChatGptNet.Models/ChatGptChoice.md) | ||
* class [ChatGptChoiceExtensions](../ChatGptChoiceExtensions.md) | ||
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
20 changes: 20 additions & 0 deletions
20
docs/ChatGptNet.Extensions/ChatGptChoiceExtensions/GetFunctionCall.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ChatGptChoiceExtensions.GetFunctionCall method | ||
|
||
Gets the first function call of the message, if any. | ||
|
||
```csharp | ||
public static ChatGptFunctionCall? GetFunctionCall(this ChatGptChoice choice) | ||
``` | ||
|
||
## Return Value | ||
|
||
The first function call of the message, if any. | ||
|
||
## See Also | ||
|
||
* class [ChatGptFunctionCall](../../ChatGptNet.Models/ChatGptFunctionCall.md) | ||
* class [ChatGptChoice](../../ChatGptNet.Models/ChatGptChoice.md) | ||
* class [ChatGptChoiceExtensions](../ChatGptChoiceExtensions.md) | ||
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ChatGptFunctionExtensions class | ||
|
||
Provides extension methods for working with [`ChatGptFunction`](../ChatGptNet.Models/ChatGptFunction.md) instances. | ||
|
||
```csharp | ||
public static class ChatGptFunctionExtensions | ||
``` | ||
|
||
## Public Members | ||
|
||
| name | description | | ||
| --- | --- | | ||
| static [ToTools](ChatGptFunctionExtensions/ToTools.md)(…) | Converts a list of [`ChatGptFunction`](../ChatGptNet.Models/ChatGptFunction.md) to the corresponding tool definitions. | | ||
|
||
## See Also | ||
|
||
* namespace [ChatGptNet.Extensions](../ChatGptNet.md) | ||
* [ChatGptFunctionExtensions.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Extensions/ChatGptFunctionExtensions.cs) | ||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
24 changes: 24 additions & 0 deletions
24
docs/ChatGptNet.Extensions/ChatGptFunctionExtensions/ToTools.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ChatGptFunctionExtensions.ToTools method | ||
|
||
Converts a list of [`ChatGptFunction`](../../ChatGptNet.Models/ChatGptFunction.md) to the corresponding tool definitions. | ||
|
||
```csharp | ||
public static IEnumerable<ChatGptTool> ToTools(this IEnumerable<ChatGptFunction> functions) | ||
``` | ||
|
||
| parameter | description | | ||
| --- | --- | | ||
| functions | The list of [`ChatGptFunction`](../../ChatGptNet.Models/ChatGptFunction.md) | | ||
|
||
## Return Value | ||
|
||
The list of [`ChatGptTool`](../../ChatGptNet.Models/ChatGptTool.md) objects that contains the specified *functions*. | ||
|
||
## See Also | ||
|
||
* class [ChatGptTool](../../ChatGptNet.Models/ChatGptTool.md) | ||
* class [ChatGptFunction](../../ChatGptNet.Models/ChatGptFunction.md) | ||
* class [ChatGptFunctionExtensions](../ChatGptFunctionExtensions.md) | ||
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
docs/ChatGptNet.Extensions/ChatGptResponseExtensions/ContainsFunctionCalls.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ChatGptResponseExtensions.ContainsFunctionCalls method | ||
|
||
Gets a value indicating whether the first choice, if available, contains a function call. | ||
|
||
```csharp | ||
public static bool ContainsFunctionCalls(this ChatGptResponse response) | ||
``` | ||
|
||
## See Also | ||
|
||
* method [GetFunctionCall](./GetFunctionCall.md) | ||
* class [ChatGptFunctionCall](../../ChatGptNet.Models/ChatGptFunctionCall.md) | ||
* class [ChatGptResponse](../../ChatGptNet.Models/ChatGptResponse.md) | ||
* class [ChatGptResponseExtensions](../ChatGptResponseExtensions.md) | ||
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
17 changes: 17 additions & 0 deletions
17
docs/ChatGptNet.Extensions/ChatGptResponseExtensions/ContainsToolCalls.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ChatGptResponseExtensions.ContainsToolCalls method | ||
|
||
Gets a value indicating whether the first choice, if available, contains a tool call. | ||
|
||
```csharp | ||
public static bool ContainsToolCalls(this ChatGptResponse response) | ||
``` | ||
|
||
## See Also | ||
|
||
* method [GetFunctionCall](./GetFunctionCall.md) | ||
* class [ChatGptToolCall](../../ChatGptNet.Models/ChatGptToolCall.md) | ||
* class [ChatGptResponse](../../ChatGptNet.Models/ChatGptResponse.md) | ||
* class [ChatGptResponseExtensions](../ChatGptResponseExtensions.md) | ||
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
Oops, something went wrong.