Skip to content

[ problem ] found unhashable key in resource user_prompt: {{ body }} #944

Description

@flynntsang

To Reproduce

  1. Clone the agent-machine
  2. Create a new agent resource file, e.g. hello-world-agent.eidolon.yaml
  3. Use the IDE shortcuts, e.g.:
  • apiVersion
  • AgentResource
  • SimpleAgent
  • actions
  1. Add or edit the configuration so you get the following file:
apiVersion: server.eidolonai.com/v1alpha1
kind: Agent
metadata:
  name: hello-world-agent
spec:
  implementation: SimpleAgent
  actions:
    - name: converse
      user_prompt: {{ body }}
      allow_file_upload: true
      output_state: idle
  1. From the agent-machine root directory, load the server, e.g. sudo make docker-serve
  2. See error (attached)
...
agent-server-1  |   File "/usr/local/lib/python3.11/site-packages/yaml/constructor.py", line 141, in construct_mapping
agent-server-1  |     raise ConstructorError("while constructing a mapping", node.start_mark,
agent-server-1  | yaml.constructor.ConstructorError: while constructing a mapping
agent-server-1  |   in "/local_mount/resources/hello-world-agent.eidolon.yaml", line 9, column 20
agent-server-1  | found unhashable key
agent-server-1  |   in "/local_mount/resources/hello-world-agent.eidolon.yaml", line 9, column 21

error-action-body-unhashable-key.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    🏎️ autobahnhigh priority dev experience enhancements

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    1 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions