2025-01-01ãã1å¹´éã®è¨äºä¸è¦§
ã¯ããã« ã¡ããªã¹ããä¸çªä¸æã«ãªãããããæ³£ãã nikkieã§ãã OpenAIã®GPTã§ã¯ããªãã¿ã®JSONå½¢å¼åºå1ã ãGeminiã§ã©ããããã ãããã¨æãåããã¾ããã ä»åã¯Google AIç¯ã§ãï¼Vertex AIã¯ç»å ´ãã¾ããï¼2 ç®æ¬¡ ã¯ããã« ç®æ¬¡ ããã¥ã¡ã³ããã â¦
ã¯ããã« æ±ã«ãããããã¨ããããã¾ããï¼1 nikkieã§ãã å æ¥emi-reããªãªã¼ã¹ãã¾ããã ãã®éçºã§Hatchã使ã£ã¦ã®éæã綴ãã¾ãã ä»åã¯ãã¹ãã«é¢ãããã®ã«ãªãã¾ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Hatchã§Pythonããã¸ã§ã¯ãéçº Hatchã§ãã¹ãå®è¡ ã©ã³ãã â¦
ã¯ããã« ãããªã«å¯ãã®ã«ãã8æãããnikkieã§ãã Todayï¼â»æè¿ï¼ I learned ãªå°ãã¿ã§ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ MainContentExtractorã§HTMLããã¡ã¤ã³ã®é¨åãåãåºã ç¥ã£ããã£ãã MainContentExtractorã®ããã¥ã¡ã³ããã ä¼¼ããã¼ã« çµããã« Maâ¦
ã¯ããã« ããããã¾ãSDKå¢ããã¦ï¼ nikkieã§ãã Google製ã®LLMãGeminiã«ã¤ãã¦ãæ´çã®ããã«ç¥ã£ã¦ãããã¨ãæ¸ãåºãã¾ã ç®æ¬¡ ã¯ããã« ç®æ¬¡ APIã¯2ã¤ã®ãµã¼ãã¹ã§æä¾ããã 3ã¤ã®å ¬å¼SDK google-generativeaiï¼Google AIåãï¼ google-cloud-aiplatâ¦
ã¯ããã« æ¯ä¸ããããã"ç©ãã§ã"ã®ééãã§ããã ã¡ããåæã«åºã¦ãããªãã§ï¼ ï¼è¨ãåãå£°ï¼ ...nikkieã§ãã æ°å¹´åããè³¼èªãã¦ããPythonã®ã¡ã«ãã¬ã«ã¤ãã¦1æ¬æ¸ãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ ãã£ããã®è³ªåï¼ããªãã®Pythonæ å ±åéã¯ã©ãããï¼â¦
ã¯ããã« åã¯ãã¼ãã¼ã«ãªãã nikkieã§ãã æè¿ I Learned ã§ãã è奮è¦ãããã¾ããï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ maturinã®ãã¥ã¼ããªã¢ã« Rustããã°ã©ã ããä½ã£ããã¤ããªããmaturinã§Pythonããã±ã¼ã¸ã«ããï¼ bindingsã¨ãã¦ãã¤ããªãæå® çµããã« maâ¦
ã¯ãã㫠人ã®å¤¢ã¯!!!çµãããã§!!!! nikkieã§ãã Prompt flowã¯Azureçºãªã®ã§Geminiã¯ãµãã¼ããã¦ããªãã®ã§ããã触ã£ã¦ããä¸ã§ãç§ãç¥ã£ã¦ãç¯å²ã®æ å ±ãçµã¿åããããã§ããããªï¼ãã¨æã£ã¡ãã£ãã®ã§æãåããã¾ããã å 容ãå 容ãªã®ã§ãå¾æ¥Miâ¦
ã¯ããã« ã¹ã¿ãã¼1ã3å¹ãªãªã¤ãããããã¨ããããã¾ããï¼ nikkieã§ãã ä¸ã¯ã¾ãã«å¤§LLMæä»£ï¼ æ¥ã æ°ãããã¼ã«ãã©ãã©ãç»å ´ãã¦ãã¾ãã ãã®ä¸ããï¼æè¿åºã¦ãããã¼ã«ã§ã¯ãªãã§ããï¼Microsoftã«ããPrompt flowã触ãã¾ããã ç®æ¬¡ ã¯ããã« ç®â¦
ã¯ããã« ã¡ããªã¹ãããã£ã¡ãããã£ããããè¨ã£ãï¼ nikkieã§ãã Flake8ã¯ï¼é«éãªRuffã¸ã®ä¹ãæããé²ãã§ãã¾ããï¼æ´å²ãããªã³ã¿ã¼ã§ãã èªåã®ç¥ç好å¥å¿ãæºããããã ãã«ãFlake8ã®ãªã³ãæ©è½ã®å®è£ ãè¦ãã¾ããã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Flake8â¦
ã¯ããã« éæ§è¨ã£ããããããï¼ï¼ï¼ä»é±ã®ã¢ãªã®ãã³ææ³ï¼ nikkieã§ãã ã¿ã¤ãã«ã¸ã®ç§ã®çãï¼2025å¹´1ææç¹ï¼ã¯ãå¦ã§ãã Ruffã¯Flake8ã®è¦ç´ ãå ¨ã¦å«ãã§ãã¾ããã ãã ãã®ç¹ã¯Pythonã³ãã¥ããã£ã«ã¯è¾çãã¦ããããRuffãé«ãè©ä¾¡ãã声ãå¤ãâ¦
ã¯ããã« ã«ãã¼ï¼ï¼ nikkieã§ãã å¹´æ«å¹´å§ä¼ã¿ã®ãã¨ãã«ãªã£ãã¢ãã¡ãã©ã¼ã¡ã³èµ¤ç«ãã«ã¤ãã¦ã§ãã å½ã¨ã³ããªã«æè¡è¦ç´ ã¯ãããã¾ããï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ ã©ã¼ã¡ã³èµ¤ç« 温ããããã¿ããã ããã ãããããããããããããããããããã çµããâ¦
ãã®è¨äºã¯ãã¨ããªã¼ã»ã¹ãã¥ã¢ã¼ãã¡ããã®ãèªçæ¥ããæªææ¸ãªãã¬æªããã±ã¼ã¸ã§ãç¥ããããã®ã§ãã ã¯ããã« ã¨ããªã¼ã»ã¹ãã¥ã¢ã¼ãããããèªçæ¥ããã§ã¨ããããã¾ãï¼ nikkieã§ãã ããã¾ã§ã«åºä¼ã£ãå°è±¡æ·±ãæ£è¦è¡¨ç¾ãéããPythonã©ã¤ãã©â¦
ã¯ããã« ä¹ ç³å¥ããããèªçæ¥ããã§ã¨ããããã¾ãããããã®ã½ãªã¹ããè¸ãæã¤... nikkieã§ãã Rustã§Pythonã®ASTãæ±ããå°ããªå°ããªä¸æ©ã®ç´ æ¯ãããã¾ããã ç®æ¬¡ ã¯ããã« ç®æ¬¡ Pythonã§ASTãdumpãã rustpython-parser crate Ruffã®ãªãã¸ããªã«â¦
ã¯ããã« èªåãã¾ã æ£æããã¾ãï¼ nikkieã§ãã 注ç®ããã¦ããbrowser-useã ãªãã¸ããªã®READMEã«ããQuick startãGeminiãæå®ãã¦åããã¾ããã https://github.com/browser-use/browser-use/tree/0.1.17?tab=readme-ov-file#quick-start ç®æ¬¡ ã¯ãâ¦
ã¯ããã« ãããã®ã½ãªã¹ããããã...ï¼ã¦ã¼ãã©3æä¸ææ¾éè¦ãï¼ nikkieã§ãã ããµãµãããããã¨ã«æ°ã¥ãã¡ããã¾ãããã Pydantic社ãæ§æ³ããLogfireãããã¤ã¯ãã¹ã¼ãï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ pydantic-settingsã§CLIãä½ããï¼ Logfire pydantic-seâ¦
ã¯ããã« Astralããããã¾ã管çãããªãã¸ããªå¢ããã¦ï¼1 nikkieã§ãã Pythonã³ãã¥ããã£ã«ã¨ã£ã¦ãããã¥ã¼ã¹ã§ã¯ããã¨æãã®ã§ãããï¼æè¦ã®åããããã¨èªè¦ãã¤ã¤ãï¼ç§ã®ç®ããè¦ãAstral社ã«ã¯ã¢ã¤ãã¨ãããã¤ã³ããããã1æ¬æ¸ããã¨ã«ãã¾ãâ¦
ã¯ããã« ãããããã©ãããã nikkieã§ãã ç¥ç好å¥å¿ãæºããããã®æä½ããåã³éå¬ã§ãï¼1 â»ããã¯å¦ç¿ç¨éãªã®ã§ãå®éã«ã¯Hatchãuvãªã©python-build-standaloneãä¸ã§ä½¿ã£ã¦ãããã¼ã«ã使ã£ã¦ãã ããï¼ ç®æ¬¡ ã¯ããã« ç®æ¬¡ python-build-standaloâ¦
ã¯ããã« å¹ãä¸ãã ç¬éã好ã⪠nikkieã§ãã pydantic-settingsã§CLIã®ç´ æ¯ãã®ç¶ããä»åã¯ãµãã³ãã³ãã¾ããã触ãã¾ãã ç®æ¬¡ ã¯ããã« ç®æ¬¡ pydantic-settingsã§CLIãä½ããï¼ ãµãã³ãã³ã çµããã« pydantic-settingsã§CLIãä½ããï¼ ãã¼ã¹ã©ã¤ãâ¦
ã¯ããã« æãã¾ãã¦ããã§ã¨ããã§ãã nikkieã§ãã ç§ã¯Pydanticã®dataclassesãBaseModelã¨åãï¼ã¤ã¾ã交æå¯è½ï¼ã ã¨èª¤è§£ãã¦ãã¾ãã... ç®æ¬¡ ã¯ããã« ç®æ¬¡ ãã£ãã çµè«ï¼dataclassãã³ã¬ã¼ã¿ã¨BaseModelç¶æ¿ã«ã¯éããããã¾ã 1ï¸â£å¯å¤ãªããã©ã«â¦