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.4.0.tar.gz (150.5 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.4.0-py3-none-any.whl (237.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mistralai_vibe_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 150.5 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.4.0.tar.gz
Algorithm Hash digest
SHA256 6b2567211f871ee14e822fc8142a705a091313acdfb7a2ceca961face51b7ad6
MD5 4284b19a48998067e93d3a5af1215192
BLAKE2b-256 71e096c1d508f1eae2ee5020ee22f7acdcffdf05faeb43f52d2a284c75644c45

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mistralai_vibe_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afbdb44616178db4dfaa44517f1e714161f59aee50dd64d21c7dc4362957170f
MD5 1bdd948f69d343790a2d0d47607c1a82
BLAKE2b-256 373aaf48b31711cc9b54cec188d08f635ca8e94b809ca681e4be7199583f85cd

See more details on using hashes here.

Provenance

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