Skip to main content

Vibe SDK

Project description

Vibe SDK

High-level Python interface for running Vibe protocol agents.

The SDK distribution also ships the legacy mistralai.vibe.protocol.* namespace for compatibility while the consolidation moves internals toward SDK-owned contexts.

The SDK gives you:

  • Agent and stateful async/sync sessions
  • Pydantic-based tool authoring
  • Built-in filesystem tools
  • Client-handled tools for UI- or host-dependent actions, such as asking the user a question

For full reference, see DOCUMENTATION.md.

Quick Start

from mistralai.vibe.sdk import Agent, AgentConfig
from mistralai.vibe.sdk.execution_record.patching.json_patch import apply_patches
from mistralai.vibe.sdk.execution_record.state import TaskState
from mistralai.vibe.sdk.transports.events import TaskResultEvent, TaskStateUpdateEvent

agent = Agent(
    config=AgentConfig(
        model="mistral-large-latest",
        system_prompt="You are a concise assistant.",
    )
)

async with agent.session() as session:
    state = TaskState(input="Hello")
    async for event in session.run("Hello"):
        if isinstance(event, TaskStateUpdateEvent):
            state = apply_patches(state, event.payload.patches)
        elif isinstance(event, TaskResultEvent):
            state = event.payload.result

    print(state.output)

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

mistralai_vibe_sdk-0.3.0.tar.gz (149.3 kB view details)

Uploaded Source

Built Distribution

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

mistralai_vibe_sdk-0.3.0-py3-none-any.whl (235.6 kB view details)

Uploaded Python 3

File details

Details for the file mistralai_vibe_sdk-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for mistralai_vibe_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8203ec80694162dc2d7ab038365ce192e88bffc7991c87c9f2541686308c8cb6
MD5 5776597b087d5d5369ced4017c920d43
BLAKE2b-256 7f2e0b0013ec284b21fa57942955daaada8e03be45f1edc1dd67ed951463b6ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_vibe_sdk-0.3.0.tar.gz:

Publisher: release.yml on mistralai/vibe-sdk

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

File details

Details for the file mistralai_vibe_sdk-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mistralai_vibe_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b8909b07605080631d794382e75735ae6d6d41b1997dcb0265f2649929808a
MD5 1bd744496e7acb4d01193816dbb2d459
BLAKE2b-256 9c3b6b0cdb07fc66b4cfadd34bd25d29b7b451079447e10e2a37ffefb0bae32d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_vibe_sdk-0.3.0-py3-none-any.whl:

Publisher: release.yml on mistralai/vibe-sdk

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