/
eliza_connectweb.ts
73 lines (69 loc) · 2.6 KB
/
eliza_connectweb.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Copyright 2022 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// @generated by protoc-gen-connect-web v0.3.0 with parameter "ts_nocheck=false,target=ts"
// @generated from file buf/connect/demo/eliza/v1/eliza.proto (package buf.connect.demo.eliza.v1, syntax proto3)
/* eslint-disable */
import {ConverseRequest, ConverseResponse, IntroduceRequest, IntroduceResponse, SayRequest, SayResponse} from "./eliza_pb.js";
import {MethodKind} from "@bufbuild/protobuf";
/**
* ElizaService provides a way to talk to the ELIZA, which is a port of
* the DOCTOR script for Joseph Weizenbaum's original ELIZA program.
* Created in the mid-1960s at the MIT Artificial Intelligence Laboratory,
* ELIZA demonstrates the superficiality of human-computer communication.
* DOCTOR simulates a psychotherapist, and is commonly found as an Easter
* egg in emacs distributions.
*
* @generated from service buf.connect.demo.eliza.v1.ElizaService
*/
export const ElizaService = {
typeName: "buf.connect.demo.eliza.v1.ElizaService",
methods: {
/**
* Say is a unary request demo. This method should allow for a one sentence
* response given a one sentence request.
*
* @generated from rpc buf.connect.demo.eliza.v1.ElizaService.Say
*/
say: {
name: "Say",
I: SayRequest,
O: SayResponse,
kind: MethodKind.Unary,
},
/**
* Converse is a bi-directional streaming request demo. This method should allow for
* many requests and many responses.
*
* @generated from rpc buf.connect.demo.eliza.v1.ElizaService.Converse
*/
converse: {
name: "Converse",
I: ConverseRequest,
O: ConverseResponse,
kind: MethodKind.BiDiStreaming,
},
/**
* Introduce is a server-streaming request demo. This method allows for a single request that will return a series
* of responses
*
* @generated from rpc buf.connect.demo.eliza.v1.ElizaService.Introduce
*/
introduce: {
name: "Introduce",
I: IntroduceRequest,
O: IntroduceResponse,
kind: MethodKind.ServerStreaming,
},
}
} as const;