Class FunctionLibrary
public class FunctionLibrary
- Inheritance
-
object
FunctionLibrary
Constructors
public FunctionLibrary(params GeminiTool[] tools)
Parameters
tools GeminiTool[]
public FunctionLibrary(IEnumerable<GeminiTool> tools)
Parameters
tools IEnumerable<GeminiTool>
FunctionLibrary(params string[])
public FunctionLibrary(params string[] toolNames)
Parameters
toolNames string[]
Properties
IsEmpty
public bool IsEmpty { get; }
Property Value
- bool
this[FunctionCall]
public Function this[FunctionCall fc] { get; }
Parameters
fc FunctionCall
Property Value
- Function
this[string]
public Function this[string name] { get; }
Parameters
name string
Property Value
- Function
Methods
ToProto()
public List<GeminiTool> ToProto()
Returns
- List<GeminiTool>
Operators
public static implicit operator FunctionLibrary(GeminiTool tool)
Parameters
tool GeminiTool
Returns
- FunctionLibrary
public static implicit operator FunctionLibrary(List<GeminiTool> tools)
Parameters
tools List<GeminiTool>
Returns
- FunctionLibrary
implicit operator FunctionLibrary(string)
public static implicit operator FunctionLibrary(string toolName)
Parameters
toolName string
Returns
- FunctionLibrary
implicit operator FunctionLibrary(string[])
public static implicit operator FunctionLibrary(string[] toolNames)
Parameters
toolNames string[]
Returns
- FunctionLibrary