golem-interactive-repl-rust

Test and script Golem agents interactively using the TypeScript REPL.

1.5k|212|Updated Nov 24, 2023
One-click install
npx skills add https://github.com/golemcloud/golem --skill golem-interactive-repl-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-interactive-repl-rust
Source: https://github.com/golemcloud/golem/tree/main/golem-skills/skills/rust/golem-interactive-repl-rust
Command: npx skills add https://github.com/golemcloud/golem --skill golem-interactive-repl-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Testing deployed Golem agents normally requires writing separate client code or manual API calls. This Skill lets you interactively invoke agent methods, inspect results, and run repeatable test scripts against deployed agents directly from a REPL.

Core Features & Use Cases

  • Interactive REPL Mode: Start a TypeScript REPL with all agent client classes preloaded in the global scope, including agents written in Rust, and invoke methods with full type safety.
  • Script Execution Mode: Run TypeScript test files non-interactively with golem repl --script-file test.ts --yes for repeatable agent testing.
  • Built-in Commands: Build and deploy components without leaving the REPL using commands like .build and .deploy.
  • Use Case: After deploying a Rust counter agent, open the REPL, call CounterAgent.get("c1"), invoke increment() a few times, and verify getValue() returns the expected result.

Quick Start

Start the Golem REPL and interactively test my deployed Rust counter agent by incrementing it and reading its value.

Frequently Asked Questions about golem-interactive-repl-rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Golem agents interactively?

Run `golem repl` to start a TypeScript REPL with all agent client classes preloaded in the global scope. You can get or create agent instances, invoke their methods, and see logs streamed during invocations.

How do I run a test script against deployed Golem agents?

Create a TypeScript file that uses the agent client classes, then run `golem repl --script-file test.ts --yes`. The `--yes` flag auto-confirms prompts, and the script shares the same global scope as the interactive REPL.

Is there a Rust REPL for Golem agents?

No, Golem does not provide a Rust REPL language. Use the default TypeScript REPL instead, since all agent types are exposed as TypeScript classes regardless of the agent's source language, including Rust.

Can I build and deploy components from inside the Golem REPL?

Yes, the REPL provides built-in commands that mirror CLI functionality. Use `.build` or `:build` to build the project and `.deploy` or `:deploy` to deploy components without leaving the REPL session.

What prerequisites are needed before using the Golem REPL?

The Golem server must be running, started with `golem server run`, and your components must be deployed with `golem deploy`. Without these, agent client classes will not be able to connect to live agents.