roleplay

Infer Proactive Topics

Changed on

Provide interest detection and personalized topics

post/api/v1/users/roleplay/proactive/{user_id}

Request

Path parameters

string uuid4 required
OR
string uuid5 required

Query parameters

topkinteger

Number of profiles to retrieve, default is all

max_token_sizeinteger

Max token size of returned profile content, default is all

prefer_topicsstring[]

Rank prefer topics at first to try to keep them in filtering, default order is by updated time

only_topicsstring[]

Only return profiles with these topics, default is all

max_subtopic_sizeinteger

Max subtopic size of the same topic in returned profile, default is all

topic_limits_jsonstring

Set specific subtopic limits for topics in JSON, for example {"topic1": 3, "topic2": 5}. The limits in this param will override max_subtopic_size.

Request body

agent_contextstring nullable

The agent's roleplay prompt

Response

Successful Response

errno0 | 400 | 401 | 403 | 404 | 405 | 409 | 422 | 500 | 501 | 502 | 503 | 504 | 520
errmsgstring

Error message, empty when success

Changes