Interface BetaManagedAgentsActor.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsActor.Visitor<T extends Object>An interface that defines how to map each variant of BetaManagedAgentsActor to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitSession(BetaManagedAgentsSessionActor session)Attribution for a write made by an agent during a session, through the mounted filesystem at /mnt/memory/.abstract TvisitApi(BetaManagedAgentsApiActor api)Attribution for a write made directly via the public API (outside of any session). abstract TvisitUser(BetaManagedAgentsUserActor user)Attribution for a write made by a human user through the Anthropic Console. Tunknown(JsonValue json)Maps an unknown variant of BetaManagedAgentsActor to a value of type T. -
-
Method Detail
-
visitSession
abstract T visitSession(BetaManagedAgentsSessionActor session)
Attribution for a write made by an agent during a session, through the mounted filesystem at
/mnt/memory/.
-
visitApi
abstract T visitApi(BetaManagedAgentsApiActor api)
Attribution for a write made directly via the public API (outside of any session).
-
visitUser
abstract T visitUser(BetaManagedAgentsUserActor user)
Attribution for a write made by a human user through the Anthropic Console.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaManagedAgentsActor to a value of type T.
An instance of BetaManagedAgentsActor can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-