mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-15 12:11:30 +00:00
Add experimental notice to canvas (#6349)
This commit is contained in:
parent
4d381d7078
commit
71363a30ec
@ -7,6 +7,11 @@ class BaseCanvas(ABC):
|
||||
An abstract protocol for "canvas" objects that maintain
|
||||
revision history for file-like data. Concrete subclasses
|
||||
can handle text, images, structured data, etc.
|
||||
|
||||
.. warning::
|
||||
|
||||
This is an experimental API and may change in the future.
|
||||
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
|
@ -22,6 +22,10 @@ class FileRevision:
|
||||
class TextCanvas(BaseCanvas):
|
||||
"""An in‑memory canvas that stores *text* files with full revision history.
|
||||
|
||||
.. warning::
|
||||
|
||||
This is an experimental API and may change in the future.
|
||||
|
||||
Besides the original CRUD‑like operations, this enhanced implementation adds:
|
||||
|
||||
* **apply_patch** – applies patches using the ``unidiff`` library for accurate
|
||||
|
@ -20,6 +20,10 @@ class TextCanvasMemory(Memory):
|
||||
A memory implementation that uses a Canvas for storing file-like content.
|
||||
Inserts the current state of the canvas into the ChatCompletionContext on each turn.
|
||||
|
||||
.. warning::
|
||||
|
||||
This is an experimental API and may change in the future.
|
||||
|
||||
The TextCanvasMemory provides a persistent, file-like storage mechanism that can be used
|
||||
by agents to read and write content. It automatically injects the current state of all files
|
||||
in the canvas into the model context before each inference.
|
||||
|
Loading…
x
Reference in New Issue
Block a user