From 1e6f03819ad8de70d177879b50e8bfcb9a1f418e Mon Sep 17 00:00:00 2001 From: ozanpekmezci Date: Sun, 16 Jul 2017 21:11:02 +0200 Subject: [PATCH] Add ability to init Context --- AI/src/QueryResponse.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AI/src/QueryResponse.swift b/AI/src/QueryResponse.swift index 4df9dad..d6ee889 100644 --- a/AI/src/QueryResponse.swift +++ b/AI/src/QueryResponse.swift @@ -26,6 +26,10 @@ public struct Metadata { public struct Context { public let name: String public let parameters: [String: Any] + init(name: String, parameters: [String: Any]) { + self.name = name + self.parameters = parameters + } } public struct Result {