Skip to content

Commit 6f59059

Browse files
committed
Use named raw string delimiters in generated C++ schema constants
1 parent 32937ca commit 6f59059

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

agent_sdks/cpp/scripts/generate_embedded_schemas.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ def read_file(path):
4747
f.write('namespace a2ui {\n')
4848
f.write('namespace internal {\n\n')
4949

50-
f.write('const char* SERVER_TO_CLIENT_SCHEMA_V08 = R"(' + v08_s2c_content + ')";\n\n')
51-
f.write('const char* SERVER_TO_CLIENT_SCHEMA_V09 = R"(' + v09_s2c_content + ')";\n\n')
52-
f.write('const char* COMMON_TYPES_SCHEMA_V09 = R"(' + v09_common_content + ')";\n\n')
53-
f.write('const char* BASIC_CATALOG_V08 = R"(' + v08_catalog_content + ')";\n\n')
54-
f.write('const char* BASIC_CATALOG_V09 = R"(' + v09_catalog_content + ')";\n\n')
50+
f.write('const char* SERVER_TO_CLIENT_SCHEMA_V08 = R"schema(' + v08_s2c_content + ')schema";\n\n')
51+
f.write('const char* SERVER_TO_CLIENT_SCHEMA_V09 = R"schema(' + v09_s2c_content + ')schema";\n\n')
52+
f.write('const char* COMMON_TYPES_SCHEMA_V09 = R"schema(' + v09_common_content + ')schema";\n\n')
53+
f.write('const char* BASIC_CATALOG_V08 = R"schema(' + v08_catalog_content + ')schema";\n\n')
54+
f.write('const char* BASIC_CATALOG_V09 = R"schema(' + v09_catalog_content + ')schema";\n\n')
55+
5556

5657
f.write('} // namespace internal\n')
5758
f.write('} // namespace a2ui\n')

0 commit comments

Comments
 (0)