provrun.tools.note

add_note: let the agent add a note or a citation to the evidence.

add_note

source

async add_note(ctx: RunContext[RunDeps], text: str, refs: list[str] | None = None) -> str

Add a note to the record of this run, for example a reason or a citation.

Args: text: The note. refs: Paths or URIs that the note is about, for example /input/report.txt.

Parameter Type Default Description
ctx RunContext[RunDeps] required PydanticAI’s run context; ctx.deps.run is the provrun run
text str required The note
refs list[str] | None None Paths or URIs that the note is about, for example /input/report.txt
returns str “noted”