Skip to main content

MOSS signing integration for AutoGen agents

Project description

moss-autogen

MOSS signing integration for AutoGen agents.

Installation

pip install moss-autogen

Usage

from autogen import AssistantAgent
from moss_autogen import signed_agent

# Create your AutoGen agent
agent = AssistantAgent(
    name="analyst",
    llm_config={"model": "gpt-4"}
)

# Wrap with MOSS signing
agent = signed_agent(agent, "moss:lab:analyst")

# After agent replies, signature is available
reply = agent.generate_reply(messages=[{"content": "Analyze this data"}])
envelope = agent.moss_envelope  # MOSS Envelope with signature

Verification

from moss import Subject

# Verify the agent's output
result = Subject.verify(agent.moss_envelope)
assert result.valid

Multi-Agent Scenarios

from autogen import AssistantAgent, UserProxyAgent
from moss_autogen import signed_agent

assistant = signed_agent(
    AssistantAgent(name="assistant", ...),
    "moss:team:assistant"
)

analyst = signed_agent(
    AssistantAgent(name="analyst", ...),
    "moss:team:analyst"
)

# Each agent's replies are independently signed
# Check assistant.moss_envelope or analyst.moss_envelope after interactions

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

moss_autogen-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

moss_autogen-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file moss_autogen-0.1.0.tar.gz.

File metadata

  • Download URL: moss_autogen-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moss_autogen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb0c96e614daa82007888b7e7b060b207099284adcee7b862869e855dcf4b645
MD5 12c4f0fc78871046127665c8f6f4acc8
BLAKE2b-256 043b3aa2e296b357805091e1c4e33e5eefdf170c493f8a78375c33545c28f2d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for moss_autogen-0.1.0.tar.gz:

Publisher: release.yml on mosscomputing/moss-autogen

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

File details

Details for the file moss_autogen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: moss_autogen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moss_autogen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abb3ba2392d09e2d9f13234699ce04f9e8159311db2354673d12bddd43f65668
MD5 1cb71de6dfa295ba3b765342a365862f
BLAKE2b-256 3dfd70a6fee831f73a2fc177c4aed28421dfab4210bb405efc56a7a3fb8b3ba2

See more details on using hashes here.

Provenance

The following attestation bundles were made for moss_autogen-0.1.0-py3-none-any.whl:

Publisher: release.yml on mosscomputing/moss-autogen

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