Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/a2a/utils/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@


def new_artifact(
parts: list[Part], name: str, description: str = ''
parts: list[Part],
name: str,
description: str | None = None,
) -> Artifact:
"""Creates a new Artifact object.

Expand All @@ -31,7 +33,7 @@ def new_artifact(
def new_text_artifact(
name: str,
text: str,
description: str = '',
description: str | None = None,
) -> Artifact:
"""Creates a new Artifact object containing only a single TextPart.

Expand All @@ -53,7 +55,7 @@ def new_text_artifact(
def new_data_artifact(
name: str,
data: dict[str, Any],
description: str = '',
description: str | None = None,
) -> Artifact:
"""Creates a new Artifact object containing only a single DataPart.

Expand Down
Loading