Socket
Socket
Sign inDemoInstall

discussion_agents

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discussion_agents

A flexible agent library.


Maintainers
1

Discussion Agents

Features

Our primary goal is to provide easy-to-use and clean functions for natural language processing tasks, enabling developers to build robust and efficient applications with ease.

  • Easy-to-Use Interface: Provides intuitive and user-friendly functions for rapid prototyping and development.

  • Clean Functions: Offers clean and well-structured functions, promoting readability and maintainability of code.

  • Modularized Implementations: Includes modularized implementations of popular LLM-based agents and agent-related methods, allowing users to leverage cutting-edge innovations from the literature.

Getting Started

question = 'Who was once considered the best kick boxer in the world, however he has been involved in a number of controversies relating to his "unsportsmanlike conducts" in the sport and crimes of violence outside of the ring?'

llm = ChatOpenAI(openai_api_key="YOUR_API_KEY")
agent = ReActAgent(llm=llm)
out = agent.generate(question=question)

Here's what the output would look like!

Thought : I need to search for the best kick boxer in the world, and then find any controversies or crimes they have been involved in.
Action : Search[best kick boxer in the world]
Observation : (Result 1/1) Ramon Dekkers is considered by many to be the best kickboxer in the world.
Thought : It mentions "unsportsmanlike conducts" and crimes of violence. I need to find more information about Ramon Dekkers.
Action : Lookup[crimes]
Observation: (Result 1/1) Dekkers was involved in a number of controversies relating to his "unsportsmanlike conducts" in the sport and crimes of violence outside of the ring.
Thought: Ramon Dekkers has been involved in controversies and crimes. I need to find more information about them.
...

Project Organization


β”œβ”€β”€ data
β”‚Β Β  β”œβ”€β”€ external                   <- Data from third party sources.
β”‚Β Β  β”œβ”€β”€ interim                    <- Intermediate data that has been transformed.
β”‚Β Β  β”œβ”€β”€ processed                  <- The final, canonical data sets for modeling.
β”‚Β Β  └── raw                        <- The original, immutable data dump.
β”‚
β”œβ”€β”€ discussion_agents              <- Source code for this project.
β”‚Β Β  β”œβ”€β”€ cog   
β”‚   β”‚   β”œβ”€β”€ agent                  <- Model/agent-related modules.
β”‚   β”‚   β”‚   
β”‚   β”‚   β”œβ”€β”€ eval                   <- Agent core modules.
β”‚   β”‚   β”‚   
β”‚   β”‚   β”œβ”€β”€ functional                  
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ modules           
β”‚   β”‚   β”‚   β”œβ”€β”€ memory             <- Memory-related modules.
β”‚   β”‚   β”‚   β”œβ”€β”€ plan               <- Planning-related modules.
β”‚   β”‚   β”‚   β”œβ”€β”€ reflect            <- Reflecting-related modules.
β”‚   β”‚   β”‚   └── score              <- Scoring-related modules.
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ persona             
β”‚   β”‚   β”‚
β”‚   β”‚   └── prompts             
β”‚   β”‚
β”‚   └── utils                      <- Utility methods.
β”‚       
β”œβ”€β”€ docs                           <- A default Sphinx project; see sphinx-doc.org for details.
β”‚
β”œβ”€β”€ models                         <- Trained and serialized models, model predictions,
β”‚                                          or model summaries.
β”‚       
β”œβ”€β”€ notebooks                      <- Jupyter notebooks. Naming convention is a number 
β”‚                                    (for ordering), the creator's initials, and a short `-` delimited β”‚ description, e.g. `1.0-jqp-initial-data-exploration`.
β”‚  
β”‚
β”œβ”€β”€ references                     <- Data dictionaries, manuals, and all other explanatory materials.
β”‚
β”œβ”€β”€ reports                        <- Generated analysis as HTML, PDF, LaTeX, etc.
β”‚Β Β  └── figures                    <- Generated graphics and figures to be used in reporting.
β”‚
└── tests                          <- Tests.

Contributing

If you want to contribute, please check the contributing.md for guidelines!

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc