Skip to content

Commit

Permalink
fix: context can be empty for CodeInterpreterIntermediateResult
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Sep 17, 2024
1 parent f03d3f9 commit 3b1c0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codeinterpreterapi/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class CodeInterpreterIntermediateResult(BaseModel):
default_factory=list,
description="エージェントの思考プロセスを表す文字列のリスト(最新の思考および根拠を理解するために必要な情報のみが入っている)",
)
context: str = Field(description="llmやagentからの回答本文")
context: str = Field(default="", description="llmやagentからの回答本文")
code: str = Field(
default="", description="プログラムのソースコード(コード自体への説明や不要な改行などを入れないこと)"
)
Expand Down

0 comments on commit 3b1c0ea

Please sign in to comment.