Skip to content

Commit 0d1df7a

Browse files
author
Gunpal Jain
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.VariousTypes#IVariousTypesTools.Tools.generated.verified.cs # src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.Weather#IWeatherTools.Tools.generated.verified.cs # src/tests/CSharpToJsonSchema.SnapshotTests/Snapshots/ToolTests.WeatherStrict#IWeatherStrictTools.Tools.generated.verified.cs
2 parents b9e53e0 + 2ffaa1e commit 0d1df7a

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
//HintName: IVariousTypesTools.Tools.generated.cs
2+
3+
#nullable enable
4+
5+
namespace CSharpToJsonSchema.IntegrationTests
6+
{
7+
public static partial class VariousTypesToolsExtensions
8+
{
9+
public static global::System.Collections.Generic.IList<global::CSharpToJsonSchema.Tool> AsTools(this IVariousTypesTools functions)
10+
{
11+
return new global::System.Collections.Generic.List<global::CSharpToJsonSchema.Tool>
12+
{
13+
new global::CSharpToJsonSchema.Tool
14+
{
15+
Name = "GetCurrentWeather3",
16+
Description = "Get the current weather in a given location",
17+
Strict = false,
18+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.VariousTypesToolsExtensionsJsonSerializerContext.Default.GetCurrentWeather3Args,"{\"mainFunction_Desc\":\"Get the current weather in a given location\"}"),
19+
},
20+
21+
new global::CSharpToJsonSchema.Tool
22+
{
23+
Name = "SetValue",
24+
Description = "Sets the value",
25+
Strict = false,
26+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.VariousTypesToolsExtensionsJsonSerializerContext.Default.SetValueArgs,"{\"mainFunction_Desc\":\"Sets the value\"}"),
27+
},
28+
29+
new global::CSharpToJsonSchema.Tool
30+
{
31+
Name = "GetValue",
32+
Description = "Gets the value",
33+
Strict = false,
34+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.VariousTypesToolsExtensionsJsonSerializerContext.Default.GetValueArgs,"{\"mainFunction_Desc\":\"Gets the value\"}"),
35+
},
36+
37+
new global::CSharpToJsonSchema.Tool
38+
{
39+
Name = "SetValueAsync",
40+
Description = "Sets the value",
41+
Strict = false,
42+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.VariousTypesToolsExtensionsJsonSerializerContext.Default.SetValueAsyncArgs,"{\"mainFunction_Desc\":\"Sets the value\"}"),
43+
},
44+
45+
new global::CSharpToJsonSchema.Tool
46+
{
47+
Name = "GetValueAsync",
48+
Description = "Gets the value",
49+
Strict = false,
50+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.VariousTypesToolsExtensionsJsonSerializerContext.Default.GetValueAsyncArgs,"{\"mainFunction_Desc\":\"Gets the value\"}"),
51+
},
52+
};
53+
}
54+
}
55+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//HintName: IWeatherTools.Tools.generated.cs
2+
3+
#nullable enable
4+
5+
namespace CSharpToJsonSchema.IntegrationTests
6+
{
7+
public static partial class WeatherToolsExtensions
8+
{
9+
public static global::System.Collections.Generic.IList<global::CSharpToJsonSchema.Tool> AsTools(this IWeatherTools functions)
10+
{
11+
return new global::System.Collections.Generic.List<global::CSharpToJsonSchema.Tool>
12+
{
13+
new global::CSharpToJsonSchema.Tool
14+
{
15+
Name = "GetCurrentWeather",
16+
Description = "Get the current weather in a given location",
17+
Strict = false,
18+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.WeatherToolsExtensionsJsonSerializerContext.Default.GetCurrentWeatherArgs,"{\"mainFunction_Desc\":\"Get the current weather in a given location\"}"),
19+
},
20+
21+
new global::CSharpToJsonSchema.Tool
22+
{
23+
Name = "GetCurrentWeatherAsync",
24+
Description = "Get the current weather in a given location",
25+
Strict = false,
26+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.WeatherToolsExtensionsJsonSerializerContext.Default.GetCurrentWeatherAsyncArgs,"{\"mainFunction_Desc\":\"Get the current weather in a given location\"}"),
27+
},
28+
};
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//HintName: IWeatherStrictTools.Tools.generated.cs
2+
3+
#nullable enable
4+
5+
namespace CSharpToJsonSchema.IntegrationTests
6+
{
7+
public static partial class WeatherStrictToolsExtensions
8+
{
9+
public static global::System.Collections.Generic.IList<global::CSharpToJsonSchema.Tool> AsTools(this IWeatherStrictTools functions)
10+
{
11+
return new global::System.Collections.Generic.List<global::CSharpToJsonSchema.Tool>
12+
{
13+
new global::CSharpToJsonSchema.Tool
14+
{
15+
Name = "GetCurrentWeather2",
16+
Description = "Get the current weather in a given location",
17+
Strict = true,
18+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.WeatherStrictToolsExtensionsJsonSerializerContext.Default.GetCurrentWeather2Args,"{\"mainFunction_Desc\":\"Get the current weather in a given location\"}"),
19+
},
20+
21+
new global::CSharpToJsonSchema.Tool
22+
{
23+
Name = "GetCurrentWeatherAsync2",
24+
Description = "Get the current weather in a given location",
25+
Strict = true,
26+
Parameters = global::CSharpToJsonSchema.SchemaBuilder.ConvertToSchema(global::CSharpToJsonSchema.IntegrationTests.WeatherStrictToolsExtensionsJsonSerializerContext.Default.GetCurrentWeatherAsync2Args,"{\"mainFunction_Desc\":\"Get the current weather in a given location\"}"),
27+
},
28+
};
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)