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.5.0.tar.gz (147.4 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.5.0-py3-none-any.whl (225.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mistralai_vibe_sdk-0.5.0.tar.gz
  • Upload date:
  • Size: 147.4 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.5.0.tar.gz
Algorithm Hash digest
SHA256 de21c2c83c787810ac33e1c7f4ed246c5a161ce8e5c0ebba53b37e18991db305
MD5 d37be0ad09077a24cf89206235da8a01
BLAKE2b-256 cd5471a6080075e5413846c49c5a62f85e38713ca22b0e08e65bc37d119a6e6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_vibe_sdk-0.5.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.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mistralai_vibe_sdk-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 457d10a1323e4b30db53dd55af27975bc82072571cd1f1b117320ed6bfd58350
MD5 4d8d1bd9eb81cbd621ebbb6ec045540b
BLAKE2b-256 58105525e150179e8f2fbd15f1358890cefde946fe7a2d0856ee7561936ab427

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_vibe_sdk-0.5.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