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

AI Functions. #52

Merged
merged 13 commits into from
Jul 4, 2023
Merged

AI Functions. #52

merged 13 commits into from
Jul 4, 2023

Conversation

FayazRahman
Copy link
Collaborator

  • loopgpt.aifunc decorator allows us to write AI functions with documentation only, and it can return python literals.
  • Use loopgpt.set_aifunc_args to set which model and embedding provider AI functions would use.
  • No need to write properties for tools anymore, just write docstrings.
  • Tools required by an agent has to specified when initializing an agent, Agent(tools=[...])
  • Agents can "watch" tools or AI functions being executed if they are executed in the with context of an agent.
  • with agent.query(...) can be used to control the context of the agent for any purpose.
  • with agent.complete(...) can be used to add additional history for the agent.

@farizrahman4u farizrahman4u merged commit d6cda56 into main Jul 4, 2023
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

Successfully merging this pull request may close these issues.

2 participants