saveArtifact

suspend fun saveArtifact(name: String, artifact: Part): Int

Saves artifact under name on the invocation's com.google.adk.kt.artifacts.ArtifactService, records the new version into eventActions' artifactDelta, and returns the version.

Throws IllegalStateException if the invocation has no artifact service configured.