imports:
  root: __package__.yml

types: 
  SendRequest: 
    properties: 
      prompt: literal<"You are a helpful assistant">
      query: string
      stream: literal<false>
      context: SomeLiteral
      maybeContext: optional<SomeLiteral>
  SomeLiteral:
    type: literal<"You're super wise">

service:
  auth: false
  base-path: ""
  endpoints:
    send:
      path: /reference
      method: POST
      request: SendRequest
      response: root.SendResponse
      examples: 
        - request: 
            prompt: "You are a helpful assistant"
            stream: false
            context: "You're super wise"
            query: "What is the weather today"
          response: 
            body: 
              message: "The weather is sunny"
              status: 200
              success: true
      