Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AppIntentsの用途 - AppleのGPT元年

AppIntentsの用途 - AppleのGPT元年

WWDC24 でのアプリ内のApp Intentsの用途が強化された点についての説明。Intentsで使用するentityをSpotlight検索の検索対象に加えることができるようになる。

notoroid

June 22, 2024
Tweet

More Decks by notoroid

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ w J1IPOFΞϓϦ։ൃऀ 9!OPUPSPJE  w ΞϓϦ։ൃऀྺ ʙ  w

    ΞϓϦ࡞࢛ͬͯ൒ੈل ೥౸ୡ  w झຯ͸ήʔϜ ൓ࣹਆܦ͕ਰ͑ͱ໨ͷർΕ͕ൈ͚ͳ͍
  2. 4JSJ,JU͔Β"QQ*OUFOUT΁ 4XJGUઐ༻ͷϑϨʔϜϫʔΫʹมߋ 0CKFDUJWF$ 9DPEFੜ੒ 4XJGU 4JSJ,JU $VTUPN*OUFOU  ʙ 4XJGUHFOFSJD

    4XJGU ରԠݴޠ ϘΠϥʔϓϨʔτ ίʔυରࡦ "QQ*OUFOUT ʙ μΠΞϩάੜ੒ 4XJGU6* 4UPSZCPBSE6*,JU"QQ,JU ΤϯςΟςΟ ఆٛ ઃఆϑΝΠϧϕʔε ίʔυϕʔε
  3. "QQ*OUFOUTͷద༻ൣғ &YUFOTJPOͱΞϓϦ಺ੜ੒͸ڞଘ "QQ*OUFOUT &YUFOTJPO ΞϓϦ಺ w1SPT wΞϓϦ͕ىಈ͠ͳͯ͘΋ಈ࡞ w$POT wΞϓϦͱͷσʔλڞ༗ʹ "QQ(SPVQ΍,FZDIBJO͕ඞ

    ཁ w1SPT wΞϓϦͷ๛෋ͳ৘ใ͕ར༻Մ ೳ wΞΫγϣϯରॲ͕༰қ w$POT wΞϓϦΛىಈ͠ͳ͍ͱఏҊ͕ ߋ৽͞Εͳ͍
  4. *OUFOUTͱ&OUJUZ ҙਤͱଘࡏ ʓʓΛ։͍͍ͯͩ͘͞ɻ ˚˚Λ։͍͍ͯͩ͘͞ɻ *OUFOUT" *OUFOUT# (SPVQ *UFN *UFN *UFN

    *OUFOUTʹ౉͢ύϥϝʔλʔͱ ͯ͠FOUJSZΛ౉͢͜ͱ͕Ͱ͖ Δɻ άϧʔϓ΍άϧʔϓ಺ͷΞΠς ϜͳͲΛ౉ͤΔܗʹม׵͢Δ ͚ͩɻ ˚˚ΛબΜͰ։͘ɻ *OUFOUT$
  5. ৽ػೳᶄ༻్޲͚ͷ*OUFOUTςϯϓϨʔτ .BLJOH:PVS"QQT'VODUJPOBMJUZ"WBJMBCMF5P4JSJ"TTJTUBOU4DIFNBT&YBNQMF"QQ*OUFOUT"MCVN"MCVN*OUFOUTTXJGU @AssistantIntent(schema: .photos.createAlbum) struct CreateAlbumIntent: AppIntent { var name:

    String @Dependency var library: MediaLibrary func perform() async throws -> some ReturnsValue<AlbumEntity> { let album = try await library.createAlbum(with: name) return .result(value: album.entity) } } 1IPUPTͷΞϧόϜΛ࡞੒
  6. !"TTJTUBOU*OUFOU w *OUFOUTʹࢦఆͰ͖ΔϚΫϩ w 4DIFNFʹج͍ͮͨ*OUFOUTͷ࣮૷Λߦ͏ w 04ଆʹ΋*OUFOU͕ԿͰ͋Δ͔ͷώϯτΛఏڙ w TDIFNF͸ͲͷυϝΠϯ ൣᙝ

    ʹؚ·Εͨಈ࡞ͳͷ͔Λنఆ͢Δ w ྫTZTUFN QIPUPT NBJM w ೥݄೔ݱࡏυϝΠϯ͸TZTUFN QIPUPT NBJMͷΈ
  7. ࢀߟ w 8IBU`TOFXJO"QQ*OUFOUT 88%$7JEFPT"QQMF %FWFMPQFS w #SJOHZPVSBQQ`TDPSFGFBUVSFT UPVTFSTXJUI"QQ*OUFOUT 88%$7JEFPT"QQMF %FWFMPQFS

    w 4VQQPSUTFNBOUJDTFBSDIXJUI $PSF4QPUMJHIU88%$ 7JEFPT"QQMF%FWFMPQFS w #SJOHZPVSBQQUP4JSJ 88%$7JEFPT"QQMF %FWFMPQFS w $PSF4QPUMJHIUc"QQMF %FWFMPQFS%PDVNFOUBUJPO