0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LangChain Meetup Tokyoに参加しました

Posted at

概要

日時

  • 2025年11月27日

場所

  • KINTOテクノロジーズ室町オフィス

主催者

  • LangChain Community(JP)

参加情報

内容

20分で丸わかり!LangChain v1.0 アップデート

Langchain v1.0, Langgraph v1.0がついにリリースされました
Langchain v1.0大きいな構成変更
  • create_agentを中心とした新パッケージとして提供されます
  • langchian(v1.0以前) -> langchian_classic
  • langgraph(v1.0以前) -> langgraph
  • langchain-core(v1.0以前) -> langchain-core
create_agent
create_agentのカスタマイズ方法として「Middleware」機能が追加された
  • before_agent
  • before_model
  • after_model
  • after_agent
  • wrap_model_call
  • wrap_tool_call

参照:https://langchain-5e9cc07a.mintlify.app/oss/python/releases/langchain-v1#custom-middleware

  • 使うイメージ
    • すぐに働くエージェント欲しい場合は、create_agentを使う
    • create_agentの動作をちょっとカスタマイズしたい場合は、Middlewareを使う
    • Middlewareでカスタマイズが大変の場合は、LangGraphで実装する
補足: 非推奨、廃止されていないもの、使われなくなった機能
  • Prompt Template
  • Output Parser
  • LCEL
Model Profile(beta)

LangChain v0.3 AIエージェントアプリを v1.0に移行してみた

システム紹介
  • 保守点検スケジュール割当自動化AIエージェント
システム構成
  1. ユーザは依頼内容をAIエージェントへ送信する
  2. 依頼事項をLLMへ送信する
  3. LLMから稼働データ取得を要求する
  4. AIエージェントは稼働データを取得する
  5. 稼働データをLLMへ送信する
  6. LLMからpythonコード実行を要求する
  7. AIエージェントからpythonコード実行結果をLLMへ送信する
  8. LLMから最終結果を送信する
  9. AIエージェントはユーザへ回答する
langchainマイグレーション
  • langchain.schema -> langchian_core.message
  • langchain.agents -> langchain_classic.agents
問題点
cannot import name 'AgentType' from 'langchian.Agents'
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?