Skip to main content

Agents

Project description

SciAgents

SciAgents is an extensible multi-agent framework designed for scientific research scenarios. It leverages large language models (LLMs) to automate research tasks and can be integrated with robotic systems for advanced scientific workflows.

Features

  • Supports various LLM providers (OpenAI, Azure, Gemini, etc.)
  • Modular agent and tool system for easy extension
  • Flexible configuration for different research needs
  • Ready-to-use test scripts and Jupyter notebooks
  • Can be combined with robots for automated scientific experiments

Installation

pip install sciagents

Quick Start

Below is a minimal example of using ChatAgent in your project.
Note: Make sure you have a valid config/config.yml with your LLM API keys and model info.

import os
from sciagents.agents.chat_agent import ChatAgent
from sciagents.agents.message import AgentInput, Message, Role
import yaml

# Load config
config_path = os.path.join("config", "config.yml")
with open(config_path, "r", encoding="utf-8") as f:
    config = yaml.safe_load(f)
chat_agent_config = config["agents"]["ChatAgent"]

# Build agent input
messages = [Message(role=Role.USER, content="Introduce yourself, please.")]
agent_input = AgentInput(messages=messages)

# Create ChatAgent instance
agent = ChatAgent(
    name="DemoChatAgent",
    llm_config={
        "model": chat_agent_config["model"],
        "api_key": chat_agent_config["api_key"],
        "api_base": chat_agent_config["url"],
        **chat_agent_config.get("model_config_dict", {})
    },
    stream=True
)

# Get response
output = agent.step(agent_input)
if hasattr(output.content, "__iter__") and not isinstance(output.content, str):
    for chunk in output.content:
        print(chunk, end="", flush=True)
    print()
else:
    print(output.content)

Project Structure

  • sciagents/: Core code (agents, tools, LLM interfaces)
  • config/: Configuration files
  • test/: Test scripts and examples

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sciagents-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sciagents-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file sciagents-0.0.2.tar.gz.

File metadata

  • Download URL: sciagents-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sciagents-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6fd7f8c54bf2009823d2e42f215b4b7da3f6c8a7ca1c461378a0810fa73b98a0
MD5 27d713647ea0411768e2c8e4d89140ad
BLAKE2b-256 57598a44aa734632b1cb226a6ed87eccb12a336a699360cb7005aaf9cf5fbaa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sciagents-0.0.2.tar.gz:

Publisher: publish.yml on openags/SciAgents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sciagents-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sciagents-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sciagents-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8813eedd23e1cc84009251b58be67f28ab6a61158496bb14803b8f70ca9dc7ac
MD5 45330e56339d621ddac0f2345768bd15
BLAKE2b-256 0aa4abf3bd90f61271dff7952f4708ecb4f94d85dce96135a055c5cdf11d65e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sciagents-0.0.2-py3-none-any.whl:

Publisher: publish.yml on openags/SciAgents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page