Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support client side reflection #2028

Open
Zane-XY opened this issue Oct 30, 2024 · 0 comments
Open

Support client side reflection #2028

Zane-XY opened this issue Oct 30, 2024 · 0 comments

Comments

@Zane-XY
Copy link

Zane-XY commented Oct 30, 2024

Feature Request

Crates

Motivation

The motivation comes from a use case in LLM function calling, which returns the function name and it's arguments in a json format:

 "tool_calls": [
          {
            "function": {
              "arguments": "{\"namespace_path\":\"***.Resource\"}",
              "name": "search_file"
            },
            "id": "call_KS7yzQlKaa4qBMPNwKPBS8uX",
            "index": 0,
            "type": "function"
          }
        ]

The function search_file is actually a gPRC method hosted in the remote server. I'm looking for ways to make generic gRPC calls without deconstructing the arguments into the required proto message struct. Actually, I don't and shouldn't care about the structure of the request and response.

Proposal

Should support such client side reflection or ways to make generic rpc calls.

Alternatives

a related crate might be https://crates.io/crates/prost-reflect. I hope this can be supported by tonic natively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant