Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC call handles. #283

Closed
SLAYER7806 opened this issue Dec 26, 2024 · 8 comments
Closed

RFC call handles. #283

SLAYER7806 opened this issue Dec 26, 2024 · 8 comments

Comments

@SLAYER7806
Copy link

Error

Text | No RFC password, cannot handle RFC calls. -- | --
Traceback (most recent call last):
Traceback (most recent call last):
  File "/home/jan/agent-zero/agent.py", line 300, in monologue
    tools_result = await self.process_tools(agent_response)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jan/agent-zero/agent.py", line 609, in process_tools
    response = await tool.execute(**tool_args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jan/agent-zero/python/tools/code_execution_tool.py", line 25, in execute
    await self.prepare_state()
  File "/home/jan/agent-zero/python/tools/code_execution_tool.py", line 100, in prepare_state
    pswd = self.agent.config.code_exec_ssh_pass if self.agent.config.code_exec_ssh_pass else await rfc_exchange.get_root_password()
                                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jan/agent-zero/python/helpers/rfc_exchange.py", line 9, in get_root_password
    enc = await runtime.call_development_function(_provide_root_password, pub)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jan/agent-zero/python/helpers/runtime.py", line 58, in call_development_function
    password = _get_rfc_password()
               ^^^^^^^^^^^^^^^^^^^
  File "/home/jan/agent-zero/python/helpers/runtime.py", line 81, in _get_rfc_password
    raise Exception("No RFC password, cannot handle RFC calls.")
Exception: No RFC password, cannot handle RFC calls.
@sureshtmca
Copy link

Update DEVELOPMENT tab in settings on UI with RFC password.

And
also try updating .env file with rfc. password.

Else
Set False to Ssh_enabled in initialize.py so that local container gets started for the code execution.

I had this problem,but resolved

@3clyp50
Copy link
Contributor

3clyp50 commented Dec 28, 2024

A bit late to the party.

These are the correct steps to set the Dev Environment for Remote Function Calls:

  1. Start the frdel/agent-zero-run Docker container with port 55022(default):22 and 32770:80, you can choose any ports.
  2. Set the RFC password in the Development tab in the UI Settings page, as correctly stated by @sureshtmca
  3. At this point you don't need to keep the Web UI of the Docker instance open, just keep the container running.
  4. Start the local instance while being inside your conda environment (python run_ui.py to be more clear)
  5. Go in the Development tab of your local instance this time, and you'll find some different things within that section.
  6. Set the first field to localhost, match the SSH and HTTP ports you've set up during the container setup phase, and obviously the password.
  7. Try running an hello world to see if the code execution works when you try running it from your local instance. Or again try web searching and the Speech to Text if you want to make yourself sure that everything's working.

I've written a simplified version but you can find this in the documentation here.

@BirenMer
Copy link

BirenMer commented Dec 29, 2024

hello @3clyp50
I have a confusion
How do we get a rfc password or what is rfc password in the context of agent zero
As of now I have two key
One - open ai
two - groq
Please guide me

@frdel
Copy link
Owner

frdel commented Dec 29, 2024

Just use the docker image. RFCs are for developers.

@BirenMer
Copy link

Just use the docker image. RFCs are for developers.

I am a developer using agent zero and working on it with another project
I just don't know how to get a RFC key for remote function call
It would be great if any sort of help is provided

@3clyp50
Copy link
Contributor

3clyp50 commented Dec 31, 2024

Just use the docker image. RFCs are for developers.

I am a developer using agent zero and working on it with another project I just don't know how to get a RFC key for remote function call It would be great if any sort of help is provided

Hi there! Sure, the RFC key is like a password that you decide for yourself as you would for a normal password. Please, avoid special characters since I've had problems with Agent Zero outputting strange error codes in terminal when using RFC passwords with £ or €.

@frdel frdel closed this as completed Dec 31, 2024
@BirenMer
Copy link

BirenMer commented Jan 6, 2025

Just use the docker image. RFCs are for developers.

I am a developer using agent zero and working on it with another project I just don't know how to get a RFC key for remote function call It would be great if any sort of help is provided

Hi there! Sure, the RFC key is like a password that you decide for yourself as you would for a normal password. Please, avoid special characters since I've had problems with Agent Zero outputting strange error codes in terminal when using RFC passwords with £ or €.

Thank you so much
I can not describe how glad I am @3clyp50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants