Worth a read for some more context.
Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:
/// Package.xcconfigWorth a read for some more context.
Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:
/// Package.xcconfig| import Foundation | |
| import DictionaryCoding | |
| /// Note: This relies on the DictionaryCoding package https://github.com/elegantchaos/DictionaryCoding | |
| struct QueryParamEncoder { | |
| func encode<T: Encodable>(_ item: T) throws -> String { | |
| let encoder = DictionaryEncoder() | |
| let encoded: [String: Any] = try encoder.encode(item) | |
| let queryParams = encodeDictionary(encoded) | |
| const s3 = require('aws-sdk/clients/s3'); // npm install aws-sdk | |
| async function readFile() { | |
| try { | |
| var s3Data = await readTxtFile(); | |
| console.log(s3Data); | |
| } catch (err) { | |
| console.log('Error:', err); | |
| } | |
| } |
| version: '3' | |
| services: | |
| openapi-mock: | |
| container_name: openapi_mock | |
| image: muonsoft/openapi-mock | |
| ports: | |
| - '8080:8080' | |
| environment: | |
| - OPENAPI_MOCK_SPECIFICATION_URL=/app/api.yml | |
| volumes: |
| import os | |
| import autogen | |
| import memgpt.autogen.memgpt_agent as memgpt_autogen | |
| import memgpt.autogen.interface as autogen_interface | |
| import memgpt.agent as agent | |
| import memgpt.system as system | |
| import memgpt.utils as utils | |
| import memgpt.presets as presets | |
| import memgpt.constants as constants | |
| import memgpt.personas.personas as personas |