Commit Graph

33 Commits

Author SHA1 Message Date
539983ba17 Add ResolveLinkedAccountByUsername to UsersService
Callers that only know how a person is addressed in chat cannot use the
id-based lookup. Same fail-closed identity rule: an ambiguous username
fails rather than resolving to a guessed user, because acting on the wrong
one can mean phoning someone who never asked to be called.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 16:22:37 +03:00
72125c137a feat(proto): AIRequest.images for vision multimodal input.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 18:18:30 +03:00
ea73b19a88 feat(proto): GenerateAnswer image response and intent classification fields.
Add user_message on AIRequest, ResponseKind/image bytes on AIResponse, and
image_prompt so clients can persist image context in chat history.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 01:10:12 +03:00
37ed4e0a86 feat(proto): AI response debug traces (used_memories, response_id, GetAIResponseTrace)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 20:05:23 +03:00
d3895e9a18 docs(proto): ResolveLinkedAccount fail-closed on ambiguous identity (FailedPrecondition); comment-only, no regen (generated doc comments drift until next regen) 2026-08-09 12:39:34 +03:00
0315e13ce0 feat(proto): UsersService.ResolveLinkedAccount - read-only platform account -> global_user_id lookup (l-ai-chat Telegram bridge identity resolution) 2026-08-09 11:32:19 +03:00
68d40d95fc feat(proto): AnswerJobResponse.agent_usage (field 5) for deferred RunAgent usage
Additive field so GetAnswerJob can return the same authoritative AgentUsage as
synchronous RunAgent for a completed deferred job. Unset for legacy
GenerateAnswer jobs. No existing field numbers or enum values changed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-07 16:37:23 +03:00
00e8f9b190 feat(proto): add RunAgent, CancelAnswerJob, Agent* messages
Extend AnswerJobState with RUNNING/CANCELLED/EXPIRED (values 5-7, backward
compatible). Add AgentRequest/AgentResponse/AgentToolLoopOptions/
AgentResponseContract/AgentUsage/AgentOutputFormat and Cancel* messages.
Existing RPCs unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-05 23:07:59 +03:00
9c923913f6 ai: add deferred-answer job API (AIResponse.status/job_id, GetAnswerJob, AIRequest.supports_deferred) 2026-08-05 00:59:30 +03:00
ccc66cd2b2 Add steam_user_id to AIRequest
Lets l-ai-steam mark inbound Steam chat requests the same way
telegram_user_id already marks Telegram ones, so l-ai-core can gate
AI tool calling on either signal.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 13:10:05 +03:00
1a9fd4a067 feat: add telegram_user_id to AIRequest and response style RPCs to UserSettingsService
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 17:09:40 +03:00
be5ac2dc40 feat: add StatelessMessage, StatelessRequest and GenerateStateless RPC 2026-05-07 13:00:55 +03:00
1763962b7d chore: remove go.mod to restore implicit parent module inclusion 2026-04-16 00:18:39 +03:00
f91884026e feat: add global_user_id and options to AskInSessionRequest 2026-04-15 23:38:14 +03:00
d9b7efeca0 feat: add global_user_id and AnswerGenerationOptions to AIRequest
- Add global_user_id field to identify user for profile/memories lookup
- Add AnswerGenerationOptions with include_user_memories bool
- Include memories in prompt when option is enabled
2026-04-15 23:20:11 +03:00
f0926121d7 feat: add AI session management endpoints
- Add CreateSession RPC for creating new AI sessions
- Add AskInSession RPC for requests within existing sessions
- Add message types: CreateSessionRequest, CreateSessionResponse, AskInSessionRequest, SessionStatusResponse
2026-04-15 22:31:46 +03:00
7d3c064ed8 feat: add Steam and VK auth RPCs to AuthService proto
Add GetSteamAuthURL/ExchangeSteamLogin (OpenID 2.0) and
GetVKOAuthURL/ExchangeVKCode (OAuth 2.0) RPCs with corresponding
request message types.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 14:09:29 +03:00
33e75e5cb9 feat: add AuthWithTelegramToken RPC for new Telegram Login widget
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 16:16:14 +03:00
96298efc46 Add AuthService proto and go.mod for standalone module usage 2026-04-03 02:34:10 +03:00
51a7f583da feat: add GetLinkedAccountsByUserAndPlatform RPC 2026-03-30 21:28:10 +03:00
5e6d62b6a5 add UserSettingsService proto (GetPreferredModel, SetPreferredModel)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 01:23:31 +03:00
3a741152fc feat: add AddAvatarExperience RPC to UserProfileService
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 23:12:35 +03:00
e26dc84ccc feat: add UserProfileService, UserMoodHistoryService, UserMessageService protos
Add profiles.proto with UserProfileService and UserMoodHistoryService for
managing Telegram user profiles, avatars, mood history, and memorable moments.
Add messages.proto with UserMessageService for storing and querying chat messages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 22:57:58 +03:00
44ed2ab876 Add UsersService proto for l_ai_core user registry 2026-03-20 21:12:48 +03:00
Aleksander Ogurtsov
2502112076 Add_reasoning_content_field 2026-03-15 16:52:45 +03:00
Aleksander Ogurtsov
f8f20573a9 Merge branch 'master' of git.be.kaien.ru:l-ai/l-ai-core-proto 2026-03-15 15:27:19 +03:00
Aleksander Ogurtsov
0794b967e3 Regenerate_proto_files 2026-03-15 15:27:17 +03:00
Aleksander Ogurtsov
98a297f5f9 Add_enable_reasoning_field 2026-03-15 15:23:42 +03:00
Aleksander Ogurtsov
53064088f9 Add_model_name_field_to_AIRequest 2026-03-15 14:06:48 +03:00
Aleksander Ogurtsov
d8b59a079a Add_model_name_field_to_AIRequest 2026-03-15 13:56:45 +03:00
Aleksander Ogurtsov
13e57cce17 proto:-update-go_package-path 2026-03-13 09:47:49 +03:00
Aleksander Ogurtsov
023e27a5f8 proto: add generated gRPC Go files 2026-03-13 09:29:26 +03:00
fe18b548b0 proto 2026-03-13 08:58:47 +03:00