Skip to main content

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.

Metadata

Release files for sciagents 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sciagents 0.0.3
File Size Uploaded Provenance Actions
sciagents-0.0.3.tar.gz 4.4 kB With provenance Details for sciagents-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sciagents 0.0.3
File Interpreter ABI Platform Actions
sciagents-0.0.3-py3-none-any.whl Python 3 none any Details for sciagents-0.0.3-py3-none-any.whl

Total release size: 9.2 kB

Release files / sciagents-0.0.3.tar.gz

Download URL sciagents-0.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
35e375728a8d2f0ff75933196e9220c2e8bf6b04b34c51f2fcb921f8bbc8849a
BLAKE2b-256 checksum
How to use checksums
59d32d5ab2ed5b68c600ada071063e96cbb94a57ea717112cee5628b0af4a7d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2025.

Transparency log

Release files / sciagents-0.0.3-py3-none-any.whl

Download URL sciagents-0.0.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8804fc9b70033564d1b28e9b860c5885580e425e0312e5b8f70d69d1a629c29
BLAKE2b-256 checksum
How to use checksums
a7688ec06808784ca8fd8ef2cac47352c5a89e9686c3469819576b81534a274c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2025.

Transparency log

Security for sciagents 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sciagents-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page