Open flynntsang opened 2 days ago
@LukeLalor Quoting prevents an error, specifically: "{{ body }}"
To do: update the IDE plugins.
apiVersion: server.eidolonai.com/v1alpha1
kind: Agent
metadata:
name: hello-world-agent
spec:
implementation: SimpleAgent
description: |
"This is a general agent that uses an LLM to answer questions."
system_prompt: You are a helpful assistant. Always use the provided tools, if appropriate, to complete the task.
actions:
- name: converse
user_prompt: "{{ body }}"
allow_file_upload: true
output_state: idle
This might be a bug in vscode yaml plugin. which would be somewhat out of our control.
We just say that the default string is "{{ body }}" and the plugin is what adds it unquoted, which isn't valid yaml as far as I can tell.
on a similar note
agent-server-1 | ERROR - Failed to start AgentOS
agent-server-1 | Traceback (most recent call last):
...
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
is this error clear enough? Perhaps the stack trace should just be "Error parsing yaml file hello-world.yaml: ConstructorError: while constructing mapping in ... line 9, column 20"
To Reproduce
hello-world-agent.eidolon.yaml
apiVersion
AgentResource
SimpleAgent
actions
sudo make docker-serve
error-action-body-unhashable-key.txt