Skip to content

Commit

Permalink
Define AI GRPC service to support using AI to generate cells (#573)
Browse files Browse the repository at this point in the history
We'd like to use AI to generate cells. In particular, we'd like to
support using [Foyle](foyle.io) to add AI capabilities.

The initial plan is to use a gRPC service to allow RunMe to communicate
with Foyle (or potentially other AI services). This proto needs to
define that gRPC service.
  • Loading branch information
jlewi authored May 15, 2024
1 parent bd9375b commit 7fd1591
Show file tree
Hide file tree
Showing 8 changed files with 526 additions and 0 deletions.
230 changes: 230 additions & 0 deletions pkg/api/gen/proto/go/runme/ai/v1alpha1/ai.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 111 additions & 0 deletions pkg/api/gen/proto/go/runme/ai/v1alpha1/ai_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions pkg/api/gen/proto/ts/runme/ai/v1alpha1/ai_pb.client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* eslint-disable */
// @generated by protobuf-ts 2.9.4 with parameter output_javascript,optimize_code_size,long_type_string,add_pb_suffix,ts_nocheck,eslint_disable
// @generated from protobuf file "runme/ai/v1alpha1/ai.proto" (package "runme.ai.v1alpha1", syntax proto3)
// tslint:disable
// @ts-nocheck
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import type { GenerateCellsResponse } from "./ai_pb";
import type { GenerateCellsRequest } from "./ai_pb";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* The AIService service is used to provide assistant capabilities to Runme.
*
* @generated from protobuf service runme.ai.v1alpha1.AIService
*/
export interface IAIServiceClient {
/**
* GenerateCells uses the AI to generate cells to insert into the notebook.
*
* @generated from protobuf rpc: GenerateCells(runme.ai.v1alpha1.GenerateCellsRequest) returns (runme.ai.v1alpha1.GenerateCellsResponse);
*/
generateCells(input: GenerateCellsRequest, options?: RpcOptions): UnaryCall<GenerateCellsRequest, GenerateCellsResponse>;
}
/**
* The AIService service is used to provide assistant capabilities to Runme.
*
* @generated from protobuf service runme.ai.v1alpha1.AIService
*/
export declare class AIServiceClient implements IAIServiceClient, ServiceInfo {
private readonly _transport;
typeName: any;
methods: any;
options: any;
constructor(_transport: RpcTransport);
/**
* GenerateCells uses the AI to generate cells to insert into the notebook.
*
* @generated from protobuf rpc: GenerateCells(runme.ai.v1alpha1.GenerateCellsRequest) returns (runme.ai.v1alpha1.GenerateCellsResponse);
*/
generateCells(input: GenerateCellsRequest, options?: RpcOptions): UnaryCall<GenerateCellsRequest, GenerateCellsResponse>;
}
Loading

0 comments on commit 7fd1591

Please sign in to comment.