golem-interactive-repl-scala

Tests and scripts Golem agents interactively through 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-scala
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-interactive-repl-scala
Source: https://github.com/golemcloud/golem/tree/main/golem-skills/skills/scala/golem-interactive-repl-scala
Command: npx skills add https://github.com/golemcloud/golem --skill golem-interactive-repl-scala

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Testing deployed Golem agents normally requires writing and running separate client code. This Skill lets you interactively invoke agent methods, inspect results, and run repeatable test scripts against deployed agents without leaving a REPL session.

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 Scala, and invoke their methods with full type safety.
  • Script Execution Mode: Run a TypeScript test file non-interactively with golem repl --script-file test.ts --yes for automated agent testing.
  • Built-in Commands: Build and deploy components directly from the REPL using commands like .build and .deploy.
  • Use Case: You have deployed a Scala counter agent and want to verify its behavior. Start the REPL, call CounterAgent.get("c1"), invoke increment() twice, and read back the value with getValue() while watching streamed logs.

Quick Start

Ask the assistant to start the Golem REPL and invoke a method on your deployed Scala agent to verify it works.

Frequently Asked Questions about golem-interactive-repl-scala

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 an interactive 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?

Use script mode with `golem repl --script-file test.ts --yes` to execute a TypeScript file non-interactively. The script shares the same global scope as the interactive REPL, so all agent client classes are available.

Is there a Scala REPL for Golem agents?

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

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 session.

What prerequisites does the Golem REPL need?

The Golem server must be running, started with `golem server run`, and your components must be deployed with `golem deploy`. Without these, agent invocations in the REPL will not work.