Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

trytilde-pydantic-ai

Latest version: v5.9.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: daniel_trysoma
16 Versions
1.4K Downloads

Scan summary

trytilde-pydantic-ai was last scanned on 26 Nov 2026 at version 5.9.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest 5 were published within 4 days (23–26 Nov 2026).
  • Findings: No rules fired in version 5.9.0.
  • Downloads: 1,398 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
5.9.0 LATEST 26 Nov 2026 No rules fired
5.8.0 26 Nov 2026 No rules fired
5.7.0 25 Nov 2026 No rules fired
5.6.0 25 Nov 2026 Not shown
5.5.0 23 Nov 2026 Not shown

No rules fired in 5.9.0

Findings

Findings for v5.9.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 5.9.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Pydantic AI adapter

Core history and delivery live in trytilde. This package converts typed context to Pydantic AI ModelMessage history and channel tools to Pydantic AI tools, bundles an invocation's run options in tilde_pydantic_ai(ctx) and lets tilde deploy register a module-level agent's prompts.

import tilde
from pydantic_ai import Agent
from pydantic_ai.usage import UsageLimits
from tilde_pydantic_ai import convert_to_pydantic_ai_messages, tilde_pydantic_ai

INFERENCE = tilde.inference("default")
responder = Agent(model_using(INFERENCE), instructions="Respond using the channel's tools.")


async def run(ctx):
    history = await ctx.message.history()
    messages = await convert_to_pydantic_ai_messages(history.items, context=ctx)
    await responder.run(
        message_history=messages,
        usage_limits=UsageLimits(request_limit=8),
        **await tilde_pydantic_ai(ctx),
    )

tilde_pydantic_ai(ctx) returns capabilities=[TildeInvocation] and a cancellation_token that a stop or suspension cancels. The per-run capability contributes the current channel's tools, enqueues input steered while the agent works after every graph node (RunContext.enqueue, delivered with the next model request), stamps the agent's dynamic instructions on its model calls and, since Pydantic AI has no native skills, adds list_skills/read_skill with the skills summary in the instructions (skills=False leaves them out).

tilde deploy (entry point tilde.discover) registers each module-level Agent's instructions and system prompts as <name or variable>/instructions and <name>/system_prompt (/<n> from 1 when there are several): text is plain, TemplateStr is mustache and a function is dynamic with its source as the template. They are read from Pydantic AI's private fields (2.43); an unreadable agent is reported in the inventory.

History pages are chronological; pass before_message_id=history.next_page_token for older messages. The latest page includes the current objective unless it already matches the latest received message. include_objective=False omits it. include_work=True also reads current goals/tasks and requires work.read. Only the acting agent's messages become ModelResponse items; everything else is a ModelRequest with a UserPromptPart. Messages whose status is not complete are skipped unless a custom message handler is given.

Pydantic AI parts have no id field. Each converted message keeps its Tilde id in the application-level metadata ({"tilde_message_id": ...}, read it with message_id(message)); that metadata is never sent to the model.

Images and PDFs are downloaded through ctx.attachments.download and embedded as BinaryContent. Text files include their real content. Unsupported binary formats get an explicit attachment description; use on_attachment to parse them yourself. No private URL or credential needs to be exposed to the model. Converting a message with attachments without a context or custom handler raises instead of silently dropping the file.

from tilde_pydantic_ai import MessageHandlers, text_message

history = await ctx.message.history(include_work=True)
messages = await convert_to_pydantic_ai_messages(
    history.items,
    context=ctx,
    on_message=MessageHandlers(
        goal=lambda item: text_message(item.id, "user", f"Our goal: {item.goal.objective}"),
        task=lambda item: None,  # Omit this type, or provide a different rendering.
    ),
    on_attachment=decode_attachment,  # async def decode_attachment(input) -> str | BinaryContent
)

MessageHandlers supports message, objective, goal and task; handlers may be sync or async. Supplied handlers take precedence over cached/default rendering; returning None omits an item. Without an override the converter renders all supported types. Completed, attachment-free conversation messages are cached through the existing per-agent cache in bounded batches (100 items or 1 MiB) as a small {"id", "role", "text"} JSON value; a cached entry is reused only when its id and role match. Files are hydrated afresh and never stored in the cache; objectives/goals/tasks remain live projections rather than cached chat records.

Channel tools

convert_to_pydantic_ai_tools(ctx.channel.current) preserves the provider's descriptions and JSON schemas (via Tool.from_schema) and forwards Pydantic AI's RunContext.tool_call_id to Tilde's audited tool execution. It does not publish the model's final text. The agent chooses the provider tool and arguments, including routing fields required by that provider. Cancellation is enforced by the core: a stopped invocation refuses further tool RPCs.

Override tool instructions with instructions={"sendMessage": "..."}, or change the channel tool's description before conversion. When combining namespaces, use prefix="slack_" (or another prefix) to keep model tool names distinct. Names are sanitized to [a-zA-Z0-9_-]; names over 64 characters are truncated with a stable hash suffix; conflicts raise.

The core SDK exposes typed callable tools on ctx.channel.slack, github, agentmail, linq, whatsapp, telnyx_whatsapp and native. Use ctx.channel.connections() and ctx.channel.for_connection(id) when multiple connections use a provider. ctx.channel.current never falls back to a different connection when the inbound connection has no available tools.

Cap a run with usage_limits=UsageLimits(request_limit=8) (or tool_calls_limit), the Pydantic AI equivalent of stepCountIs.

Bundled tools

The agent's own Pydantic AI tools join Tilde's in one toolset:

from pydantic_ai import Agent, Tool
from tilde import BundledOptions
from tilde_pydantic_ai import with_tilde_tools


def roll_dice(count: int = 1) -> list[int]:
    """Roll six-sided dice."""
    return [random.randint(1, 6) for _ in range(count)]


toolset = await with_tilde_tools(
    ctx, [Tool(roll_dice, metadata={"tilde": BundledOptions(summary="Rolled dice")})]
)
agent = Agent(model, toolsets=[toolset])

with_tilde_tools takes Tools or plain functions and returns one toolset with the current channel's tools, ctx.agent_tools and the native tools. It publishes the native tools to Tilde with their parameter and return schemas, so tools.search finds them and a tools.execute naming one validates and runs it here within the run's RunContext; every call is audited once with the model's call id. options={"roll_dice": BundledOptions(...)} overrides metadata["tilde"]. A ModelRetry is audited as a failed call. Tools registered with @agent.tool are outside the toolset and are neither published nor audited.

Suspend and resume

A Tilde tool call still running after about a minute answers pending instead of blocking. Before the next model call tilde_pydantic_ai's before_model_request hook suspends the run: the message history is saved (ModelMessagesTypeAdapter) and the invocation ends. When the call finishes Tilde starts the run's next invocation, which continues from the saved conversation with the call's outcome in place of the pending answer. Tilde's deadline (two minutes before Lambda's fifteen) suspends the same way. Agent code does not change.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases trytilde-pydantic-ai

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229