Clever Actors only accepts GRAPH actors, not LLM actors. #2

Open
opened 2026-05-19 00:49:44 +00:00 by brent.edwards · 0 comments
Member

Summary

Creating an LLM actor throws an exception.

Metadata

  • Commit message: fix(actors): Allow LLM actors
  • Branch: fix/llm-actors

Details

From a new Docker image, type the following:

mkdir -p ~/test/20260518
cd ~/test/20260518
uv venv
source .venv/bin/activate
cd /app
uv pip install "cleveractors @ git+https://git.cleverthis.com/cleveragents/cleveractors-core@master"
cd ~/test/20260518
cat << EOF > actor.py
from cleveractors.actor import compile_actor
from cleveractors.actor.schema import ActorConfigSchema
from cleveractors.actor.yaml_loader import load_yaml_text

raw = load_yaml_text(open("my-actor.yaml").read())
config = ActorConfigSchema.model_validate(raw)
compiled = compile_actor(config)
print(compiled.metadata.node_ids)
EOF
cat << EOF > my-actor.yaml
# Simple LLM Actor Example
# Demonstrates the most basic actor configuration with just an LLM and system prompt

name: assistants/proofreader
type: llm
description: This assistant proofreads text.
version: "1.0.0"

# LLM configuration
provider: openai
model: gpt-4
system_prompt: |
    You are an expert proofreader. Read the given text and correct:
        - misspellings
        - incorrect grammar
        - incorrect punctuation
        - incorrect capitalizations
        - duplicate words
        - misplaced modifiers

    Provide constructive feedback with specific suggestions for improvement.

# Context and memory settings
context_view: reviewer
memory:
    enabled: true
    max_messages: 20
    max_tokens: 4000

context:
    include_files:
        - "*.txt"
    include_dirs:
        - "src/"
    max_context_tokens: 8000
EOF
python actor.py

The results will be:

Traceback (most recent call last):
  File "/home/devuser/test/20260518/actor.py", line 7, in <module>
    compiled = compile_actor(config)
  File "/app/src/cleveractors/actor/compiler.py", line 253, in compile_actor
    raise ActorCompilationError(
        f"Only GRAPH actors can be compiled; got type={config.type.value}"
    )
cleveractors.actor.compiler.ActorCompilationError: Only GRAPH actors can be compiled; got type=llm
# Summary Creating an LLM actor throws an exception. # Metadata - Commit message: fix(actors): Allow LLM actors - Branch: fix/llm-actors # Details From a new Docker image, type the following: ``` mkdir -p ~/test/20260518 cd ~/test/20260518 uv venv source .venv/bin/activate cd /app uv pip install "cleveractors @ git+https://git.cleverthis.com/cleveragents/cleveractors-core@master" cd ~/test/20260518 cat << EOF > actor.py from cleveractors.actor import compile_actor from cleveractors.actor.schema import ActorConfigSchema from cleveractors.actor.yaml_loader import load_yaml_text raw = load_yaml_text(open("my-actor.yaml").read()) config = ActorConfigSchema.model_validate(raw) compiled = compile_actor(config) print(compiled.metadata.node_ids) EOF cat << EOF > my-actor.yaml # Simple LLM Actor Example # Demonstrates the most basic actor configuration with just an LLM and system prompt name: assistants/proofreader type: llm description: This assistant proofreads text. version: "1.0.0" # LLM configuration provider: openai model: gpt-4 system_prompt: | You are an expert proofreader. Read the given text and correct: - misspellings - incorrect grammar - incorrect punctuation - incorrect capitalizations - duplicate words - misplaced modifiers Provide constructive feedback with specific suggestions for improvement. # Context and memory settings context_view: reviewer memory: enabled: true max_messages: 20 max_tokens: 4000 context: include_files: - "*.txt" include_dirs: - "src/" max_context_tokens: 8000 EOF python actor.py ``` The results will be: ``` Traceback (most recent call last): File "/home/devuser/test/20260518/actor.py", line 7, in <module> compiled = compile_actor(config) File "/app/src/cleveractors/actor/compiler.py", line 253, in compile_actor raise ActorCompilationError( f"Only GRAPH actors can be compiled; got type={config.type.value}" ) cleveractors.actor.compiler.ActorCompilationError: Only GRAPH actors can be compiled; got type=llm ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveractors-core#2
No description provided.