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

WASM support for agents? #1991

Open
MarcusWentz opened this issue Jan 8, 2025 · 2 comments
Open

WASM support for agents? #1991

MarcusWentz opened this issue Jan 8, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@MarcusWentz
Copy link

Is your feature request related to a problem? Please describe.

Feature request.

Describe the solution you'd like

A simple way to compile agents into WASM.

Describe alternatives you've considered

Typescript does not support WASM compilation directly.
AssemblyScript and Rust can compile to WASM.
Are the eliza npm packages compatible with AssemblyScript?
Would it be possible to interact with an agent with an API RPC endpoint
and write some program in AssemblyScript or Rust to interact with the agent through that API endpoint?

Additional context

Attempting to create an agent that can run in a WASM environment.

@MarcusWentz MarcusWentz added the enhancement New feature or request label Jan 8, 2025
Copy link
Contributor

github-actions bot commented Jan 8, 2025

Hello @MarcusWentz! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

@MarcusWentz
Copy link
Author

MarcusWentz commented Jan 10, 2025

It seems the direct client REST API endpoint:

import { DirectClientInterface } from "@eliza/client-direct";

might work for POST requests as shown here:

https://elizaos.github.io/eliza/docs/packages/clients/#direct-client

There should be a way to communicate with the client endpoint
using Rust or AssemblyScript with REST API libraries to have a program communicating with an agent that compiles to WASM.

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

No branches or pull requests

1 participant