GenAI.BuildingBlocks 1.0.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package GenAI.BuildingBlocks --version 1.0.9
 
NuGet\Install-Package GenAI.BuildingBlocks -Version 1.0.9
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GenAI.BuildingBlocks" Version="1.0.9" />
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GenAI.BuildingBlocks" Version="1.0.9" />
 
Directory.Packages.props
<PackageReference Include="GenAI.BuildingBlocks" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GenAI.BuildingBlocks --version 1.0.9
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GenAI.BuildingBlocks, 1.0.9"
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GenAI.BuildingBlocks@1.0.9
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GenAI.BuildingBlocks&version=1.0.9
 
Install as a Cake Addin
#tool nuget:?package=GenAI.BuildingBlocks&version=1.0.9
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

No contexto do seu README, seria assim para cada bloco de c�digo:

```csharp
Obtenha a inst�ncia das interfaces:
 _cadastroUsuarioRepository = InternalConfigurationDI.GetService<UserRepository>(connectionStringMongoDB, database);
 _mongoQueryBuilder = InternalConfigurationDI.GetService<IMongoQueryBuilder>();
 _teamsUtilities = InternalConfigurationDI.GetService<TeamsUtilities>(microsoftAppId, microsoftAppPassword, conversationId);
2. **Para o primeiro exemplo de uso**:
 ```markdown
 ```csharp
 var messageUser = "Liste todos os usu�rios";
 this.fnCallParameters.MessageUser = messageUser;
 this.fnCallParameters.Model = new User();
 var queryIA = await _mongoQueryBuilder.GetQueryFromIA<User>(fnCallParameters);
 var response = await _mongoCommand.GetRunCommandAsyncToTable(queryIA);
3. **Para a implementa��o da classe `User`**:
```markdown
```csharp
[RuleConditionPrompt(Rule = "Regra 100", Condition = @"Lembre-se: voc� deve retornar todos os campos relacionados na cole��o cadastro_usuarios.")]
[RuleConditionPrompt(Rule = "Regra 101", Condition = @"Lembre-se da regra 100.")]
[Display(Name = "Cadastro de Usu�rios")]
[BsonCollection("cadastro_usuarios_teste_hml")]
public class User : BaseModel
{
 [Display(Name = "ID")]
 [JsonProperty(PropertyName = "_id")]
 [BsonRepresentation(BsonType.String)]
 public ObjectId Id { get; set; }
 [Display(Name = "E-Mail")]
 [JsonProperty(PropertyName = "Mail")]
 public string Mail { get; set; }
}
4. **Para o exemplo de cria��o de inst�ncia**:
```markdown
```csharp
Utilize BaseMongoRepository para opera��es de reposit�rio.
Exemplo de Heran�a:
 public class UserRepository: BaseMongoDBRepository<User>
 {
 public UserRepository(string connectionString, string databaseName) : base(connectionString, databaseName)
 {
 }
 }
5. **Voc� pode enviar mensagens para o teams**:
```markdown
```csharp
Use a classe TeamsUtilities para isso.
Exemplo: 
public async Task GetAndSendUserToTeams()
{
 try
 {
 var messageUser = "Liste todos os usu�rios";
 this.fnCallParameters.MessageUser = messageUser;
 this.fnCallParameters.Model = new User();
 var queryIA = await _mongoQueryBuilder.GetQueryFromIA<User>(fnCallParameters);
 var response = await _mongoCommand.GetRunCommandAsyncToTable(queryIA);
 response.AskUser = messageUser;
 var html = response.ToHTML();
 var result = await _teamsUtilities.SendMessageToTeams(html);
 Assert.True(!string.IsNullOrEmpty(result.Id));
 }
 catch (Exception ex)
 {
 throw ex;
 }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed.
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 222 4/25/2024
1.0.13 180 4/1/2024
1.0.12 173 2/23/2024
1.0.11 173 2/23/2024
1.0.10 196 2/19/2024
1.0.9 169 2/16/2024
1.0.8 192 2/5/2024
1.0.7 165 2/2/2024
1.0.6 159 2/1/2024
1.0.5 163 2/1/2024
1.0.4 170 1/30/2024
1.0.3 165 1/29/2024