Skip to content

fix(ContextChat): add suitable attributes to the public api - #63750

Open
kyteinsky wants to merge 1 commit into
masterfrom
fix/context-chat-add-implementable
Open

fix(ContextChat): add suitable attributes to the public api#63750
kyteinsky wants to merge 1 commit into
masterfrom
fix/context-chat-add-implementable

Conversation

@kyteinsky

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

Add attributes to the public context chat api to make the purpose and api compatibility clearer.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@kyteinsky
kyteinsky requested a review from a team as a code owner August 28, 2026 01:32
@kyteinsky
kyteinsky requested review from Altahrim, leftybournes and salmart-dev and removed request for a team August 28, 2026 01:32
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
@kyteinsky
kyteinsky force-pushed the fix/context-chat-add-implementable branch from 991f9c1 to 3afae1d Compare August 28, 2026 12:22
/**
* @since 32.0.0
*/
#[Consumable(since: '32.0.0')]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be Implementable?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was looking at these docs, how they envision the usage of these attributes: https://docs.nextcloud.com/server/latest/developer_manual/digging_deeper/api.html
Consumable seems to be meant for direct use via dependency injection, while Implementable should be implemented.

or did you mean that IContentManager can be implemented by apps other than context_chat?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, I initially thought all interfaces had to be Implementable or something like that, ignore me then

/**
* @since 32.0.0
*/
#[Implementable(since: '32.0.0')]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be Consumable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants