Record Class FeishuChannelProperties
java.lang.Object
java.lang.Record
io.agentscope.extensions.channel.feishu.FeishuChannelProperties
- Record Components:
appId- Feishu custom-app id (cli_xxx)appSecret- Feishu custom-app secretencryptKey- optional Encrypt Key configured in the developer console; when non-blank the callback body is AES-256-CBC encrypted and must be decrypted before parsingverificationToken- optional Verification Token configured in the developer console; when non-blank thetokenfield of the URL verification challenge is matched against itcallbackPath- HTTP path Spring exposes the callback under; defaults to/api/channels/feishu/{channelId}/callbackapiBase- override for the Feishu Open API base URL; defaulthttps://open.feishu.cn
public record FeishuChannelProperties(String appId, String appSecret, String encryptKey, String verificationToken, String callbackPath, String apiBase)
extends Record
Provider-specific configuration for a single Feishu (飞书 / Lark) channel instance, sourced from
the
properties block of channels.<id> in agentscope.json.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiBase()Returns the value of theapiBaserecord component.appId()Returns the value of theappIdrecord component.Returns the value of theappSecretrecord component.Returns the value of thecallbackPathrecord component.Returns the value of theencryptKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.static FeishuChannelPropertiesReads aFeishuChannelPropertiesfrom an arbitrary properties map.final inthashCode()Returns a hash code value for this object.booleanWhether AES-256-CBC payload decryption is enabled for this channel.final StringtoString()Returns a string representation of this record class.Returns the value of theverificationTokenrecord component.
-
Constructor Details
-
FeishuChannelProperties
public FeishuChannelProperties(String appId, String appSecret, String encryptKey, String verificationToken, String callbackPath, String apiBase) Creates an instance of aFeishuChannelPropertiesrecord class.- Parameters:
appId- the value for theappIdrecord componentappSecret- the value for theappSecretrecord componentencryptKey- the value for theencryptKeyrecord componentverificationToken- the value for theverificationTokenrecord componentcallbackPath- the value for thecallbackPathrecord componentapiBase- the value for theapiBaserecord component
-
-
Method Details
-
from
Reads aFeishuChannelPropertiesfrom an arbitrary properties map. -
isEncrypted
public boolean isEncrypted()Whether AES-256-CBC payload decryption is enabled for this channel. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
appId
Returns the value of theappIdrecord component.- Returns:
- the value of the
appIdrecord component
-
appSecret
Returns the value of theappSecretrecord component.- Returns:
- the value of the
appSecretrecord component
-
encryptKey
Returns the value of theencryptKeyrecord component.- Returns:
- the value of the
encryptKeyrecord component
-
verificationToken
Returns the value of theverificationTokenrecord component.- Returns:
- the value of the
verificationTokenrecord component
-
callbackPath
Returns the value of thecallbackPathrecord component.- Returns:
- the value of the
callbackPathrecord component
-
apiBase
Returns the value of theapiBaserecord component.- Returns:
- the value of the
apiBaserecord component
-