Docs(README): "Using agents directly" has 2 problems. #54

Open
opened 2026-06-12 23:28:22 +00:00 by brent.edwards · 0 comments
Member

Metadata

Commit Message: docs(registry): update Using agents directly
Branch: docs/using-agents-directly

Details

The current "Using Agents Directly" is:

from cleveractors import Agent
from cleveractors.agents.llm import LLMAgent

agent = LLMAgent(
    name="assistant",
    config={"provider": "openai", "model": "gpt-4o", "system_prompt": "Be helpful."},
)
response = await agent.process_message("What is 2+2?")
print(response)

There are two problems with the code:

  1. The code has an await statement, even though it's not in an async method.
  2. When it's run without await, the following error happens:
 File "/home/devuser/Temp/agents.py", line 4, in <module>
    agent = LLMAgent(
        name="assistant",
        config={"provider": "openai", "model": "gpt-4o", "system_prompt": "Be helpful."},
    )
TypeError: LLMAgent.__init__() missing 1 required positional argument: 'template_renderer'
## Metadata Commit Message: docs(registry): update Using agents directly Branch: docs/using-agents-directly ## Details The current "Using Agents Directly" is: ``` from cleveractors import Agent from cleveractors.agents.llm import LLMAgent agent = LLMAgent( name="assistant", config={"provider": "openai", "model": "gpt-4o", "system_prompt": "Be helpful."}, ) response = await agent.process_message("What is 2+2?") print(response) ``` There are two problems with the code: 1. The code has an `await` statement, even though it's not in an async method. 2. When it's run without `await`, the following error happens: ``` File "/home/devuser/Temp/agents.py", line 4, in <module> agent = LLMAgent( name="assistant", config={"provider": "openai", "model": "gpt-4o", "system_prompt": "Be helpful."}, ) TypeError: LLMAgent.__init__() missing 1 required positional argument: 'template_renderer' ```
brent.edwards added this to the v2.1.0 milestone 2026-06-12 23:28:22 +00:00
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#54
No description provided.