Skip to main content

App

Public app declaration object. Class source

Methods

app.agent

View source
agent(self, id: Optional[str] = None) -> Callable[[Callable[..., Any]], Callable[..., Any]]
When to use: Register an app agent. Key kwargs are task/instructions, entrypoint, skills, schedules, handoff_to, runtime, and sandbox.

app.local_entrypoint

View source
local_entrypoint(self) -> Callable[[Callable[..., Any]], Callable[..., Any]]
When to use: Register the local-only callable used by python app.py local for fast iteration.

app.tool

View source
tool(self) -> Callable[[Callable[..., Any]], Callable[..., Any]]
When to use: Register a model-callable tool from Python source. Prefer explicit id + description and keep signatures type-annotated for schema generation.

app.call_local_entrypoint

View source
call_local_entrypoint(self, input_payload: dict[str, str]) -> Any
When to use: Programmatically invoke the registered local entrypoint with an input payload dict.

app.manifest

View source
manifest(self) -> dict[str, Any]
When to use: Return the normalized deploy payload including agent, compatibility workflows, interfaces, and runtime_profile.