GithubHelp home page GithubHelp logo

callawaycloud / llm-apex-agents Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 25.0 235 KB

Run Large Language Model "Agents" in Salesforce apex

License: MIT License

Apex 72.79% JavaScript 17.65% HTML 9.48% CSS 0.08%
apex chatgpt gpt-4 llm openai salesforce

llm-apex-agents's People

Contributors

chuckjonas avatar trevoryager-callaway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

llm-apex-agents's Issues

Installation Errors

Hi, I am getting errors while deploying the repo to the developer org. Can you please list the steps to deploy?

I have tried deploying the whole main folder from VS Code Windows environment and got the error
"force-app\main\observability\appMenus\AppSwitcher.appMenu-meta.xml In field: AppMenuItem.Name - no ConnectedApp named CPQIntegrationUserApp found"
Moreover, when I deploy using the sfdx force:mdapi:deploy --deploydir main --wait 1000 I get "package.xml not found error". Please help

Handle OpenAI Status Code: 429

Currently, if OpenAI returns a 429, the agent exits can cannot be restarted. I might be worth handling this failure by retying the request with a backoff.

Implementing #4 would reduce this issue as the agent could just be restarted.

Infinite loop when prompting to create records

When I prompt the agent to create a record of a standard or custom object, the action is performed, however the agent does it in a loop until the Queue able job aborts or till maximum heap size is reached.

For example,
image

Note that in this chain, the record was created thrice before timing out. Am I supposed to prompt it better or is anyone else observing this issue?

Agent "suspension / reanimation"

Being able to suspend and reanimate agents would really open up the possibility for a lot.

Beyond just recovering from failures, this would be required for "Action Approval" (#6), "User Feedback", "async actions" (such as asking the user for specific input).

Unfortunately, the use of interface is going to make this more challenging as non-concrete types cannot be deserialized...

Should also consider if we can suspend a whole "Stack" of agents to support multi-agent use cases.

Action Approval

For production use, you probably would want some way of approving agent actions before they are executed.

When setting up the tools, you could specify which actions the agent can run without approval.

Would need to modify the current tool registration a bit:

void registerTool(String cmd, IAgentTool tool, Boolean requireApproval)

This break also could also be a chance to provide user feedback and to modify the action the agent is requesting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.