Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SamplingCapabilities.cs
2
4{
9 {
14 public object? Context { get; internal set; }
15
19 public object? Tools { get; internal set; }
20
27 public static bool TryParse(Dictionary<string, object> Generic,
28 out SamplingCapabilities Typed)
29 {
31
32 if (Generic.TryGetValue("context", out object? Obj))
33 Result.Context = Obj;
34
35 if (Generic.TryGetValue("tools", out Obj))
36 Result.Tools = Obj;
37
38 Typed = Result;
39 return true;
40 }
41 }
42}
object? Context
Whether the client supports context inclusion via includeContext parameter. If not declared,...
static bool TryParse(Dictionary< string, object > Generic, out SamplingCapabilities Typed)
Tries to parse a generic structure into a typed structure.
object? Tools
Whether the client supports tool use via tools and toolChoice parameters.