Class DotnetInteractiveFunction
- Namespace
- AutoGen.DotnetInteractive
- Assembly
- AutoGen.DotnetInteractive.dll
public class DotnetInteractiveFunction : IDisposable
- Inheritance
-
DotnetInteractiveFunction
- Implements
- Inherited Members
Constructors
DotnetInteractiveFunction(InteractiveService, string?, bool)
Create an instance of DotnetInteractiveFunction"
public DotnetInteractiveFunction(InteractiveService interactiveService, string? notebookPath = null, bool continueFromExistingNotebook = false)
Parameters
interactiveService
InteractiveServiceinteractive service to use.
notebookPath
stringnotebook path if provided.
continueFromExistingNotebook
bool
Methods
Dispose()
public void Dispose()
InstallNugetPackages(string[])
Install nuget packages.
[Function(null, null)]
public Task<string> InstallNugetPackages(string[] nugetPackages)
Parameters
nugetPackages
string[]nuget package to install.
Returns
RunCode(string)
Run existing dotnet code from message. Don't modify the code, run it as is.
[Function(null, null)]
public Task<string> RunCode(string code)
Parameters
code
stringcode.