A baby holding a human-like robot's hand. The baby's facial expression shows curiosity and wonder, while the robot's facial expression appears calm and reassuring.

How a Task-Driven Autonomous Agent Utilises GPT-4 and LangChain for Diverse Applications

*****NEXT TASK*****

33: Develop a system to enable the agent to enhance itself with its own integrations to access these APIs.

> Entering new AgentExecutor chain…

Thought: I need to find out what APIs are available and how to integrate them.

Action: Search

Action Input: APIs for self-modificationAPI call has been prohibited Error – Oracle Forums

https://forums.oracle.com/ords/r/apexds/community/q?question=api-call-has-been-prohibited-error-1622

Process Self-Modification Detection – Technique D3-PSMD | MITRE …

https://d3fend.mitre.org/technique/d3f:ProcessSelf-ModificationDetection/

Runtime API usage required for get function — oracle-tech

https://community.oracle.com/tech/developers/discussion/4176014/runtime-api-usage-required-for-get-function

Identity Service Self APIs

https://cloudentity.com/developers/api/identity_apis/identity-self-api/

Proxies: Design Principles for Robust Object-oriented Intercession …

https://research.google.com/pubs/archive/36574.pdf

PingDirectory REST API Reference

https://apidocs.pingidentity.com/pingdirectory/directory/v1/api/guide/

POST request body modification | Layer7 API Management

https://community.broadcom.com/viewthread?MID=802577

Self-modifying code – Wikipedia

https://en.wikipedia.org/wiki/Self-modifying_code

self modifying code – CUDA Programming and Performance …

https://forums.developer.nvidia.com/t/self-modifying-code/3288

ES6 – Reflect API

https://www.tutorialspoint.com/es6/es6_reflect_api.htm

Observation: None

Thought: I need to find out how to integrate APIs with the agent.

Action: Search

Action Input: How to integrate APIs with an autonomous agentOracle Cloud Infrastructure API Reference and Endpoints

https://docs.oracle.com/iaas/api/

FAQ – SentinelOne

https://www.sentinelone.com/faq/

REST API for Oracle Integration – About the REST APIs

https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/index.html

What is an Application Programming Interface (API)? | IBM

https://www.ibm.com/topics/api

From ChatGPT to Auto-GPT: Discover the Next Evolution of …

https://medium.com/codingthesmartway-com-blog/from-chatgpt-to-auto-gpt-discover-the-next-evolution-of-autonomous-ai-thats-changing-the-game-a00e83d583cf

Build More Engaging Games with ML Agents | Unity

https://unity.com/products/machine-learning-agents

Task-driven Autonomous Agent Utilizing GPT-4, Pinecone, and …

Autonomous cognitive agents with natural language abilities.

https://titanvx.com/api/

Access Oracle Autonomous Database (ADB) resides in Private …

https://redthunder.blog/2023/01/24/access-oracle-autonomous-database-adb-resides-in-private-subnet-via-oracle-integration-cloud-oic-connectivity-agent/

Multimodal localization for autonomous agents

https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/ei/31/7/art00003

Observation: None

Thought: I need to find out how to use GitHub integration for self-modification.

Action: Search

Action Input: How to use GitHub integration for self-modificationAn error occurred: <HttpError 429 when requesting https://customsearch.googleapis.com/customsearch/v1?q=How+to+use+GitHub+integration+for+self-modification&cx=c5d28274c61e2412c&key=AIzaSyDo5iAVCrxwtpvelUF9VZ1nUJT4ubMG0nE&alt=json returned “Quota exceeded for quota metric ‘Queries’ and limit ‘Queries per day’ of service ‘customsearch.googleapis.com’ for consumer ‘project_number:543109850588’.”. Details: “[{‘message’: “Quota exceeded for quota metric ‘Queries’ and limit ‘Queries per day’ of service ‘customsearch.googleapis.com’ for consumer ‘project_number:543109850588’.”, ‘domain’: ‘global’, ‘reason’: ‘rateLimitExceeded’}]”>

—————————————————————————

TypeError                                 Traceback (most recent call last)

<ipython-input-219-b5a7585b5beb> in <cell line: 1>()

—-> 1 baby_agi({“objective”: OBJECTIVE})


12 frames


/usr/local/lib/python3.9/dist-packages/langchain/chains/base.py in __call__(self, inputs, return_only_outputs)

    114         except (KeyboardInterrupt, Exception) as e:

    115             self.callback_manager.on_chain_error(e, verbose=self.verbose)

–> 116             raise e

    117         self.callback_manager.on_chain_end(outputs, verbose=self.verbose)

    118         return self.prep_outputs(inputs, outputs, return_only_outputs)

/usr/local/lib/python3.9/dist-packages/langchain/chains/base.py in __call__(self, inputs, return_only_outputs)

    111         )

    112         try:

–> 113             outputs = self._call(inputs)

    114         except (KeyboardInterrupt, Exception) as e:

    115             self.callback_manager.on_chain_error(e, verbose=self.verbose)

<ipython-input-215-d770d929b0dd> in _call(self, inputs)

     53 

     54                 # Step 2: Execute the task

—> 55                 result = execute_task(

     56                     self.vectorstore, self.execution_chain, objective, task[“task_name”]

     57                 )

<ipython-input-208-73e984a8b243> in execute_task(vectorstore, execution_chain, objective, task, k)

     16             return “No results found.”

     17     else:

—> 18         return execution_chain.run(objective=objective, context=context, task=task)

/usr/local/lib/python3.9/dist-packages/langchain/chains/base.py in run(self, *args, **kwargs)

    214 

    215         if kwargs and not args:

–> 216             return self(kwargs)[self.output_keys[0]]

    217 

    218         raise ValueError(

/usr/local/lib/python3.9/dist-packages/langchain/chains/base.py in __call__(self, inputs, return_only_outputs)

    114         except (KeyboardInterrupt, Exception) as e:

    115             self.callback_manager.on_chain_error(e, verbose=self.verbose)

–> 116             raise e

    117         self.callback_manager.on_chain_end(outputs, verbose=self.verbose)

    118         return self.prep_outputs(inputs, outputs, return_only_outputs)

/usr/local/lib/python3.9/dist-packages/langchain/chains/base.py in __call__(self, inputs, return_only_outputs)

    111         )

    112         try:

–> 113             outputs = self._call(inputs)

    114         except (KeyboardInterrupt, Exception) as e:

    115             self.callback_manager.on_chain_error(e, verbose=self.verbose)

/usr/local/lib/python3.9/dist-packages/langchain/agents/agent.py in _call(self, inputs)

    820         # We now enter the agent loop (until it returns something).

    821         while self._should_continue(iterations, time_elapsed):

–> 822             next_step_output = self._take_next_step(

    823                 name_to_tool_map, color_mapping, inputs, intermediate_steps

    824             )

/usr/local/lib/python3.9/dist-packages/langchain/agents/agent.py in _take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps)

    723                     tool_run_kwargs[“llm_prefix”] = “”

    724                 # We then call the tool on the tool input to get an observation

–> 725                 observation = tool.run(

    726                     agent_action.tool_input,

    727                     verbose=self.verbose,

/usr/local/lib/python3.9/dist-packages/langchain/tools/base.py in run(self, tool_input, verbose, start_color, color, **kwargs)

     71         except (Exception, KeyboardInterrupt) as e:

     72             self.callback_manager.on_tool_error(e, verbose=verbose_)

—> 73             raise e

     74         self.callback_manager.on_tool_end(

     75             observation, verbose=verbose_, color=color, name=self.name, **kwargs

/usr/local/lib/python3.9/dist-packages/langchain/tools/base.py in run(self, tool_input, verbose, start_color, color, **kwargs)

     68         )

     69         try:

—> 70             observation = self._run(tool_input)

     71         except (Exception, KeyboardInterrupt) as e:

     72             self.callback_manager.on_tool_error(e, verbose=verbose_)

/usr/local/lib/python3.9/dist-packages/langchain/agents/tools.py in _run(self, tool_input)

     15     def _run(self, tool_input: str) -> str:

     16         “””Use the tool.”””

—> 17         return self.func(tool_input)

     18 

     19     async def _arun(self, tool_input: str) -> str:

<ipython-input-209-40384fe33d8e> in search_internet(query)

     13 

     14     # Extract the titles and URLs of the top search results

—> 15     results = [{‘title’: r[‘title’], ‘url’: r[‘link’]} for r in results]

     16 

     17     # Print the results

TypeError: ‘NoneType’ object is not iterable

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *