Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TMP] PHP Reference preview for extending AI #2538

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

mnocon
Copy link
Contributor

@mnocon mnocon commented Nov 11, 2024

Companion PR for #2537

@mnocon mnocon merged commit 7d79208 into IBX-8689-extending Nov 11, 2024
2 of 5 checks passed
@mnocon mnocon deleted the IBX-8689-extending-phpref branch November 11, 2024 23:44
@mnocon mnocon restored the IBX-8689-extending-phpref branch November 11, 2024 23:45
Copy link

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/ai_actions/config/services.yaml

docs/ai_actions/extend_ai_actions.md@45:``` yaml
docs/ai_actions/extend_ai_actions.md@46:[[= include_file('code_samples/ai_actions/config/services.yaml', 25, 28) =]]
docs/ai_actions/extend_ai_actions.md@47:```

001⫶ App\Command\AddMissingAltTextCommand:
002⫶ arguments:
003⫶ $projectDir: '%kernel.project_dir%'

docs/ai_actions/extend_ai_actions.md@112:``` yaml
docs/ai_actions/extend_ai_actions.md@113:[[= include_file('code_samples/ai_actions/config/services.yaml', 33, 37) =]]
docs/ai_actions/extend_ai_actions.md@114:```

001⫶ app.connector_ai.action_configuration.handler.llava_text_to_text.form_mapper.options:
002⫶ class: Ibexa\Bundle\ConnectorAi\Form\FormMapper\ActionConfiguration\ActionHandlerOptionsFormMapper
003⫶ arguments:

docs/ai_actions/extend_ai_actions.md@132:``` yaml
docs/ai_actions/extend_ai_actions.md@133:[[= include_file('code_samples/ai_actions/config/services.yaml', 38, 45) =]]
docs/ai_actions/extend_ai_actions.md@134:```

001⫶ tags:
002⫶ - name: ibexa.connector_ai.action_configuration.form_mapper.options
003⫶ type: !php/const \App\AI\Handler\LLaVaTextToTextActionHandler::IDENTIFIER
004⫶
005⫶ App\AI\ActionType\TranscribeAudioActionType:
006⫶ arguments:
007⫶ $actionHandlers: !tagged_iterator

docs/ai_actions/extend_ai_actions.md@158:``` yaml
docs/ai_actions/extend_ai_actions.md@159:[[= include_file('code_samples/ai_actions/config/services.yaml', 42, 50) =]]
docs/ai_actions/extend_ai_actions.md@160:```

001⫶ App\AI\ActionType\TranscribeAudioActionType:
002⫶ arguments:
003⫶ $actionHandlers: !tagged_iterator
004⫶ tag: app.connector_ai.action.handler.audio_to_text
005⫶ default_index_method: getIdentifier
006⫶ index_by: key
007⫶ tags:
008⫶ - { name: ibexa.ai.action.type, identifier: !php/const \App\AI\ActionType\TranscribeAudioActionType::IDENTIFIER }

docs/ai_actions/extend_ai_actions.md@192:``` yaml
docs/ai_actions/extend_ai_actions.md@193:[[= include_file('code_samples/ai_actions/config/services.yaml', 51, 58) =]]
docs/ai_actions/extend_ai_actions.md@194:```

001⫶ app.connector_ai.action_configuration.handler.transcribe_audio.form_mapper.options:
002⫶ class: Ibexa\Bundle\ConnectorAi\Form\FormMapper\ActionConfiguration\ActionTypeOptionsFormMapper
003⫶ arguments:
004⫶ $formType: 'App\Form\Type\TranscribeAudioOptionsType'
005⫶ tags:
006⫶ - name: ibexa.connector_ai.action_configuration.form_mapper.action_type_options
007⫶ type: !php/const \App\AI\ActionType\TranscribeAudioActionType::IDENTIFIER

docs/ai_actions/extend_ai_actions.md@206:``` yaml
docs/ai_actions/extend_ai_actions.md@207:[[= include_file('code_samples/ai_actions/config/services.yaml', 59, 63) =]]
docs/ai_actions/extend_ai_actions.md@208:```

001⫶ App\AI\Handler\WhisperAudioToTextActionHandler:
002⫶ tags:
003⫶ - { name: ibexa.ai.action.handler, priority: 0 }
004⫶ - { name: app.connector_ai.action.handler.audio_to_text, priority: 0 }

docs/ai_actions/extend_ai_actions.md@221:``` yaml
docs/ai_actions/extend_ai_actions.md@222:[[= include_file('code_samples/ai_actions/config/services.yaml', 65, 69) =]]
docs/ai_actions/extend_ai_actions.md@223:```

001⫶ App\AI\REST\Input\Parser\TranscribeAudio:
002⫶ parent: Ibexa\ConnectorAi\REST\Input\Parser\Action

code_samples/ai_actions/config/services.yaml

docs/ai_actions/extend_ai_actions.md@45:``` yaml
docs/ai_actions/extend_ai_actions.md@46:[[= include_file('code_samples/ai_actions/config/services.yaml', 25, 28) =]]
docs/ai_actions/extend_ai_actions.md@47:```

001⫶ App\Command\AddMissingAltTextCommand:
002⫶ arguments:
003⫶ $projectDir: '%kernel.project_dir%'

docs/ai_actions/extend_ai_actions.md@112:``` yaml
docs/ai_actions/extend_ai_actions.md@113:[[= include_file('code_samples/ai_actions/config/services.yaml', 33, 37) =]]
docs/ai_actions/extend_ai_actions.md@114:```

001⫶ app.connector_ai.action_configuration.handler.llava_text_to_text.form_mapper.options:
002⫶ class: Ibexa\Bundle\ConnectorAi\Form\FormMapper\ActionConfiguration\ActionHandlerOptionsFormMapper
003⫶ arguments:

docs/ai_actions/extend_ai_actions.md@132:``` yaml
docs/ai_actions/extend_ai_actions.md@133:[[= include_file('code_samples/ai_actions/config/services.yaml', 38, 45) =]]
docs/ai_actions/extend_ai_actions.md@134:```

001⫶ tags:
002⫶ - name: ibexa.connector_ai.action_configuration.form_mapper.options
003⫶ type: !php/const \App\AI\Handler\LLaVaTextToTextActionHandler::IDENTIFIER
004⫶
005⫶ App\AI\ActionType\TranscribeAudioActionType:
006⫶ arguments:
007⫶ $actionHandlers: !tagged_iterator

docs/ai_actions/extend_ai_actions.md@158:``` yaml
docs/ai_actions/extend_ai_actions.md@159:[[= include_file('code_samples/ai_actions/config/services.yaml', 42, 50) =]]
docs/ai_actions/extend_ai_actions.md@160:```

001⫶ App\AI\ActionType\TranscribeAudioActionType:
002⫶ arguments:
003⫶ $actionHandlers: !tagged_iterator
004⫶ tag: app.connector_ai.action.handler.audio_to_text
005⫶ default_index_method: getIdentifier
006⫶ index_by: key
007⫶ tags:
008⫶ - { name: ibexa.ai.action.type, identifier: !php/const \App\AI\ActionType\TranscribeAudioActionType::IDENTIFIER }

docs/ai_actions/extend_ai_actions.md@192:``` yaml
docs/ai_actions/extend_ai_actions.md@193:[[= include_file('code_samples/ai_actions/config/services.yaml', 51, 58) =]]
docs/ai_actions/extend_ai_actions.md@194:```

001⫶ app.connector_ai.action_configuration.handler.transcribe_audio.form_mapper.options:
002⫶ class: Ibexa\Bundle\ConnectorAi\Form\FormMapper\ActionConfiguration\ActionTypeOptionsFormMapper
003⫶ arguments:
004⫶ $formType: 'App\Form\Type\TranscribeAudioOptionsType'
005⫶ tags:
006⫶ - name: ibexa.connector_ai.action_configuration.form_mapper.action_type_options
007⫶ type: !php/const \App\AI\ActionType\TranscribeAudioActionType::IDENTIFIER

docs/ai_actions/extend_ai_actions.md@206:``` yaml
docs/ai_actions/extend_ai_actions.md@207:[[= include_file('code_samples/ai_actions/config/services.yaml', 59, 63) =]]
docs/ai_actions/extend_ai_actions.md@208:```

001⫶ App\AI\Handler\WhisperAudioToTextActionHandler:
002⫶ tags:
003⫶ - { name: ibexa.ai.action.handler, priority: 0 }
004⫶ - { name: app.connector_ai.action.handler.audio_to_text, priority: 0 }

docs/ai_actions/extend_ai_actions.md@221:``` yaml
docs/ai_actions/extend_ai_actions.md@222:[[= include_file('code_samples/ai_actions/config/services.yaml', 65, 69) =]]
docs/ai_actions/extend_ai_actions.md@223:```

001⫶ App\AI\REST\Input\Parser\TranscribeAudio:
002⫶ parent: Ibexa\ConnectorAi\REST\Input\Parser\Action
003⫶        tags:
004⫶ - { name: ibexa.rest.input.parser, mediaType: application/vnd.ibexa.api.ai.TranscribeAudio }
003⫶        autowire: true
004⫶ tags:

docs/ai_actions/extend_ai_actions.md@246:``` yaml
docs/ai_actions/extend_ai_actions.md@247:[[= include_file('code_samples/ai_actions/config/services.yaml', 70, 73) =]]
docs/ai_actions/extend_ai_actions.md@248:```

001⫶ App\AI\REST\Output\Resolver\AudioTextResolver:
002⫶ tags:

docs/ai_actions/extend_ai_actions.md@246:``` yaml
docs/ai_actions/extend_ai_actions.md@247:[[= include_file('code_samples/ai_actions/config/services.yaml', 70, 73) =]]
docs/ai_actions/extend_ai_actions.md@248:```

001⫶ App\AI\REST\Output\Resolver\AudioTextResolver:
002⫶ tags:
003⫶            - { name: ibexa.ai.action.mime_type, key: application/vnd.ibexa.api.ai.AudioText }

docs/ai_actions/extend_ai_actions.md@257:``` yaml
docs/ai_actions/extend_ai_actions.md@258:[[= include_file('code_samples/ai_actions/config/services.yaml', 74, 78) =]]
docs/ai_actions/extend_ai_actions.md@259:```

001⫶ App\AI\REST\Output\ValueObjectVisitor\AudioText:
002⫶ parent: Ibexa\Contracts\Rest\Output\ValueObjectVisitor
003⫶ tags:

docs/ai_actions/extend_ai_actions.md@257:``` yaml
docs/ai_actions/extend_ai_actions.md@258:[[= include_file('code_samples/ai_actions/config/services.yaml', 74, 78) =]]
docs/ai_actions/extend_ai_actions.md@259:```

001⫶ App\AI\REST\Output\ValueObjectVisitor\AudioText:
002⫶ parent: Ibexa\Contracts\Rest\Output\ValueObjectVisitor
003⫶ tags:
004⫶            - { name: ibexa.rest.output.value_object.visitor, type: App\AI\REST\Value\AudioText }


Download colorized diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant