YAFAI-Core Documentation
Link
gRPC Link between YAFAI-Core and clients
Link is the bridge between the YAFAI-Core and clients, enabling communication. At its core, this ia gRPC service with reflection enabled, allowing clients to discover available services and methods dynamically.
Proto file schema
Usage
To use the Link service, you can generate client code using the protoc
compiler with the appropriate plugins for your programming language. For example, in Python, you can use:
This will generate the necessary client and server code to interact with the Link service.
Example Client
This example demonstrates how to connect to the Link service, send a chat request, and receive responses in a streaming manner. You can adapt this code to fit your specific use case and programming language.