Table of Contents

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 InteractiveService

interactive service to use.

notebookPath string

notebook 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

Task<string>

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 string

code.

Returns

Task<string>