12 lines
339 B
Java
12 lines
339 B
Java
|
|
package com.company.agentfoundation.agent;
|
||
|
|
|
||
|
|
public record AgentRequestContext(
|
||
|
|
String agentId,
|
||
|
|
String wecomUserId,
|
||
|
|
String userText
|
||
|
|
) {
|
||
|
|
public static AgentRequestContext of(String agentId, String wecomUserId, String userText) {
|
||
|
|
return new AgentRequestContext(agentId, wecomUserId, userText == null ? "" : userText);
|
||
|
|
}
|
||
|
|
}
|