Skip to main content

flyteplugins-agents-core

The shared contract every Flyte agent-SDK adapter is built on, so they all follow one common format.

It is SDK-agnostic — no agent SDK is a dependency here. Adapters depend on it and implement the contract; assert_adapter_conforms enforces that in CI.

What's in it

  • durable_step(request_key, run, *, name, dumps, loads) — record a call as a durable, replayable flyte.trace leaf (the model-turn durability mechanism). The real, non-serializable call is captured in the run closure, so the trace only ever sees the serializable request_key.
  • fingerprint(payload) — a deterministic memo key from a request payload.
  • ToolTaskResolver / attach_tool_resolver(task) — make a tool-backing task resolve to itself on the worker (via the tool's __wrapped_task__ hook) instead of re-dispatching, which would otherwise recurse indefinitely.
  • ReportTimeline — render agent events into a tab of the Flyte task report.
  • flyteplugins.agents.core.testing.assert_adapter_conforms(module) — the conformance check every adapter runs as a one-line test.

The rule every adapter follows

The agent run is a Flyte @env.task (the durable parent); each model turn is a flyte.trace (a memoized, replayable leaf); each tool is a Flyte task invoked as a durable child action.

Writing an adapter

A flyteplugins-agents-<sdk> package depends on this core and exposes, at minimum, tool and run_agent (see the conformance contract). Its tool object exposes __wrapped_task__; run_agent runs the SDK's loop inside the calling @env.task, wraps the model in a durable provider built on durable_step, and renders the trace via ReportTimeline.

Metadata

Release files for flyteplugins-agents-core 2.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for flyteplugins-agents-core 2.10.2
File Interpreter ABI Platform
flyteplugins_agents_core-2.10.2-py3-none-any.whl Python 3 none any Details

Release files / flyteplugins_agents_core-2.10.2-py3-none-any.whl

Download URL flyteplugins_agents_core-2.10.2-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed46b8b7f0c6397e2f0cfe7534bc6b76bea74f39b2742d0439391eda3bdd8fec
BLAKE2b-256 checksum
How to use checksums
82152e6f19fe08007e3479eea58e0223b5dc48b67de0b9a14a08b1e87a1f7659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

2.11.4

1 release file

2.11.3

1 release file

2.11.2

1 release file

2.11.1

1 release file

2.11.0

1 release file

2.10.7

1 release file

2.10.6

1 release file

2.10.5

1 release file

2.10.4

1 release file

2.10.3

1 release file

This release

2.10.2 This release

1 release file

2.10.1

1 release file

2.10.0

1 release file

2.9.0

1 release file

2.8.1

1 release file

2.8.0

1 release file

2.7.2

1 release file

2.7.1

1 release file

2.7.0

1 release file

2.6.13

1 release file

2.6.12

1 release file

2.6.11

1 release file

2.6.10

1 release file

2.6.9

1 release file

2.6.8

1 release file

2.6.7

1 release file

2.6.6

1 release file

2.6.5

1 release file

2.6.4

1 release file

2.6.3

1 release file

2.6.2

1 release file

2.6.1

1 release file

2.6.0

1 release file

2.5.20

1 release file

2.5.18

1 release file

2.5.17

1 release file

2.5.16

1 release file

2.5.15

1 release file

2.5.14

1 release file

2.5.13

1 release file

2.5.12

1 release file

2.5.11

1 release file

2.5.10

1 release file

2.5.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page